AdiantiDatabaseWidgetTrait
Database Widget trait
Tags
Table of Contents
Methods
- getItemsFromModel() : mixed
- Get items (key/value) from database to populate widget
- getObjectsFromModel() : mixed
- Get objects from database to populate widget
Methods
getItemsFromModel()
Get items (key/value) from database to populate widget
public
static getItemsFromModel(mixed $database, mixed $model, mixed $key, mixed $value[, mixed $ordercolumn = NULL ][, TCriteria $criteria = NULL ]) : mixed
Parameters
- $database : mixed
- $model : mixed
- $key : mixed
- $value : mixed
- $ordercolumn : mixed = NULL
- $criteria : TCriteria = NULL
getObjectsFromModel()
Get objects from database to populate widget
public
static getObjectsFromModel(mixed $database, mixed $model, mixed $key[, mixed $ordercolumn = NULL ][, TCriteria $criteria = NULL ]) : mixed
Parameters
- $database : mixed
- $model : mixed
- $key : mixed
- $ordercolumn : mixed = NULL
- $criteria : TCriteria = NULL