Provides a base implementation for models that utilize fields.
More...
List of all members.
Public Member Functions |
| toArray () |
| Get the model data as an array.
|
Detailed Description
Provides a base implementation for models that utilize fields.
- Copyright:
- 2011-2012 Perforce Software. All rights reserved
- License:
- Please see LICENSE.txt in top-level folder of this distribution.
- Version:
- 2012.2/486814
Member Function Documentation
P4_ModelAbstract::toArray |
( |
| ) |
|
Get the model data as an array.
- Returns:
- array the model data as an array.
Implements P4_ModelInterface.
{
$values = array();
foreach ($this->getFields() as $field) {
$values[$field] = $this->getValue($field);
}
return $values;
}
The documentation for this class was generated from the following file: