|
Ubiquity 2.5.2
php rapid development framework
|
The base class for displaying datas in CRUD controllers Ubiquity\controllers\crud$CRUDDatas This class is part of Ubiquity. More...
Public Member Functions | |
| __construct ($controller) | |
| getTableNames () | |
| Returns the table names to display in the left admin menu. | |
| getFieldNames (string $model) | |
| Returns the fields to display in the showModel action for $model (DataTable) | |
| getFormFieldNames (string $model, $instance) | |
| Returns the fields to update in the edit an new action for $model. | |
| getSearchFieldNames (string $model) | |
| Returns the fields to use in search queries. | |
| getElementFieldNames (string $model) | |
| Returns the fields for displaying an instance of $model (DataElement) | |
| getManyToManyDatas ($fkClass, $instance, $member) | |
| Returns a (filtered) list of $fkClass objects to display in an html list. | |
| getManyToOneDatas ($fkClass, $instance, $member) | |
| Returns a list (filtered) of $fkClass objects to display in an html list. | |
| getOneToManyDatas ($fkClass, $instance, $member) | |
| Returns a list (filtered) of $fkClass objects to display in an html list. | |
| getUpdateOneToManyInForm () | |
| getUpdateManyToManyInForm () | |
| getUpdateManyToOneInForm () | |
| refreshPartialInstance () | |
| Defines whether the refresh is partial or complete after an instance update. | |
| _getInstancesFilter (string $model) | |
| Adds a condition for filtering the instances displayed in dataTable Return 1=1 by default. | |
Protected Attributes | |
| $controller | |
The base class for displaying datas in CRUD controllers Ubiquity\controllers\crud$CRUDDatas This class is part of Ubiquity.
Definition at line 17 of file CRUDDatas.php.
| __construct | ( | $controller | ) |
Definition at line 21 of file CRUDDatas.php.
| _getInstancesFilter | ( | string | $model | ) |
Adds a condition for filtering the instances displayed in dataTable Return 1=1 by default.
| string | $model |
Definition at line 149 of file CRUDDatas.php.
| getElementFieldNames | ( | string | $model | ) |
Returns the fields for displaying an instance of $model (DataElement)
| string | $model |
Definition at line 69 of file CRUDDatas.php.
| getFieldNames | ( | string | $model | ) |
Returns the fields to display in the showModel action for $model (DataTable)
| string | $model |
Definition at line 38 of file CRUDDatas.php.
| getFormFieldNames | ( | string | $model, |
| $instance | |||
| ) |
Returns the fields to update in the edit an new action for $model.
| string | $model | |
| object | $instance |
Definition at line 49 of file CRUDDatas.php.
| getManyToManyDatas | ( | $fkClass, | |
| $instance, | |||
| $member | |||
| ) |
Returns a (filtered) list of $fkClass objects to display in an html list.
| string | $fkClass | |
| object | $instance | |
| string | $member | The member associated with a manyToMany relation |
Definition at line 81 of file CRUDDatas.php.
| getManyToOneDatas | ( | $fkClass, | |
| $instance, | |||
| $member | |||
| ) |
Returns a list (filtered) of $fkClass objects to display in an html list.
| string | $fkClass | |
| object | $instance | |
| string | $member | The member associated with a manyToOne relation |
Definition at line 93 of file CRUDDatas.php.
| getOneToManyDatas | ( | $fkClass, | |
| $instance, | |||
| $member | |||
| ) |
Returns a list (filtered) of $fkClass objects to display in an html list.
| string | $fkClass | |
| object | $instance | |
| string | $member | The member associated with a oneToMany relation |
Definition at line 105 of file CRUDDatas.php.
| getSearchFieldNames | ( | string | $model | ) |
Returns the fields to use in search queries.
| string | $model |
Definition at line 59 of file CRUDDatas.php.
| getTableNames | ( | ) |
Returns the table names to display in the left admin menu.
Definition at line 28 of file CRUDDatas.php.
| getUpdateManyToManyInForm | ( | ) |
Definition at line 121 of file CRUDDatas.php.
| getUpdateManyToOneInForm | ( | ) |
Definition at line 129 of file CRUDDatas.php.
| getUpdateOneToManyInForm | ( | ) |
Definition at line 113 of file CRUDDatas.php.
| refreshPartialInstance | ( | ) |
Defines whether the refresh is partial or complete after an instance update.
Definition at line 138 of file CRUDDatas.php.
|
protected |
Definition at line 19 of file CRUDDatas.php.