Perforce Chronicle 2012.2/486814
API Documentation
|
Provides a common interface for models that utilize fields. 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. |
Provides a common interface for models that utilize fields.
P4_ModelInterface::getFields | ( | ) |
P4_ModelInterface::getValue | ( | $ | field | ) |
Return value of given field of the model.
string | $field | model field to retrieve |
Implemented in P4_File, P4_Job, and P4_SpecAbstract.
P4_ModelInterface::hasField | ( | $ | field | ) |
Check if given field is valid model field.
string | $field | model field to check |
Implemented in P4_File, and P4_SpecAbstract.
P4_ModelInterface::toArray | ( | ) |
Get the model data as an array.
Implemented in P4_ModelAbstract.