Format and araay of data according to a provided model
| package | Gems |
|---|---|
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.5 |
__construct(array $data, \MUtil_Model_ModelAbstract $model, boolean $formatted = true) : \Gems_FormattedData
array
\MUtil_Model_ModelAbstract
boolean
\Gems_FormattedDatacurrent()
format(array $row, \MUtil_Model_ModelAbstract $model) : array
Static method only available for single rows, for a convenient way of using on a rowset, use the class and iterate
array
\MUtil_Model_ModelAbstract
arrayThe formatted arraygetFormatted()
setFormatted($bool)
_format(\type $name, \type $result, \MUtil_Model_ModelAbstract $model) : \type
\type
\type
\MUtil_Model_ModelAbstract
\type$data : \ArrayObject
$formatted
$model : \MUtil_Model_ModelAbstract