Extends
lithium\core\Object
Access the data fields of the record. Can also access a $named field.
Parameters
- string $name Optionally included field name.
Returns
mixed Entire data array if $name is empty, otherwise the value from the named field.Source
public function data($name = null) {
if ($name) {
return $this->__get($name);
}
return $this->to('array');
}