Ubiquity  2.0.3
php rapid development framework
CRUDDatas Class Reference

The base class for displaying datas in CRUD controllers. More...

Public Member Functions

 getTableNames ()
 Returns the table names to display in the left admin menu. More...
 
 getFieldNames ($model)
 Returns the fields to display in the showModel action for $model (DataTable) More...
 
 getFormFieldNames ($model)
 Returns the fields to update in the edit an new action for $model. More...
 
 getSearchFieldNames ($model)
 Returns the fields to use in search queries. More...
 
 getElementFieldNames ($model)
 Returns the fields for displaying an instance of $model (DataElement) More...
 
 getManyToManyDatas ($fkClass, $instance, $member)
 Returns a list of $fkClass objects to select a value for $member. More...
 
 getUpdateOneToManyInForm ()
 
 getUpdateManyToManyInForm ()
 
 getUpdateManyToOneInForm ()
 
 refreshPartialInstance ()
 Defines whether the refresh is partial or complete after an instance update. More...
 

Detailed Description

The base class for displaying datas in CRUD controllers.

Author
jc

Definition at line 11 of file CRUDDatas.php.

Member Function Documentation

◆ getElementFieldNames()

getElementFieldNames (   $model)

Returns the fields for displaying an instance of $model (DataElement)

Parameters
string$model

Definition at line 48 of file CRUDDatas.php.

◆ getFieldNames()

getFieldNames (   $model)

Returns the fields to display in the showModel action for $model (DataTable)

Parameters
string$model

Definition at line 24 of file CRUDDatas.php.

◆ getFormFieldNames()

getFormFieldNames (   $model)

Returns the fields to update in the edit an new action for $model.

Parameters
string$model

Definition at line 32 of file CRUDDatas.php.

◆ getManyToManyDatas()

getManyToManyDatas (   $fkClass,
  $instance,
  $member 
)

Returns a list of $fkClass objects to select a value for $member.

Parameters
string$fkClass
object$instance
string$member
Returns
array

Definition at line 59 of file CRUDDatas.php.

◆ getSearchFieldNames()

getSearchFieldNames (   $model)

Returns the fields to use in search queries.

Parameters
string$model

Definition at line 40 of file CRUDDatas.php.

◆ getTableNames()

getTableNames ( )

Returns the table names to display in the left admin menu.

Definition at line 16 of file CRUDDatas.php.

◆ getUpdateManyToManyInForm()

getUpdateManyToManyInForm ( )
Returns
boolean

Definition at line 73 of file CRUDDatas.php.

◆ getUpdateManyToOneInForm()

getUpdateManyToOneInForm ( )
Returns
boolean

Definition at line 80 of file CRUDDatas.php.

◆ getUpdateOneToManyInForm()

getUpdateOneToManyInForm ( )
Returns
boolean

Definition at line 66 of file CRUDDatas.php.

◆ refreshPartialInstance()

refreshPartialInstance ( )

Defines whether the refresh is partial or complete after an instance update.

Returns
boolean

Definition at line 88 of file CRUDDatas.php.


The documentation for this class was generated from the following file: