lithium\data\model\Relationship::data()
Returns the named configuration item, or all configuration data, if no parameter is given.
Parameters
-
string
$key
The name of the configuration item to return, or
null
to return all items.
Returns
mixedReturns a single configuration item (mixed), or an array of all items.
Source
public function data($key = null) {
if (!$key) {
return $this->_config;
}
return isset($this->_config[$key]) ? $this->_config[$key] : null;
}