Perforce Chronicle 2012.2/486814
API Documentation
|
Provide a common interface for models. More...
Public Member Functions | |
getFields () | |
Return array with all model fields. | |
getValue ($field) | |
Return value of given field of the model. | |
hasField ($field) | |
Check if given field is valid model field. | |
toArray () | |
Get the model data as an array. |
Provide a common interface for models.
P4Cms_ModelInterface::getFields | ( | ) |
Return array with all model fields.
Implemented in P4Cms_Acl_Privilege, P4Cms_Content, P4Cms_Model, P4Cms_Record, and P4Cms_Site_Config.
P4Cms_ModelInterface::getValue | ( | $ | field | ) |
Return value of given field of the model.
string | $field | model field to retrieve |
Implemented in P4Cms_Acl_Privilege, and P4Cms_Model.
P4Cms_ModelInterface::hasField | ( | $ | field | ) |
Check if given field is valid model field.
string | $field | model field to check |
Implemented in P4Cms_Acl_Privilege, and P4Cms_Model.
P4Cms_ModelInterface::toArray | ( | ) |
Get the model data as an array.
Implemented in P4Cms_Acl_Privilege, and P4Cms_Model.