Class \Prado\Data\SqlMap\DataMapper\TPropertyAccess
TPropertyAccess class provides dot notation stype property access and setting.
Access object's properties (and subproperties) using dot path notation. The following are equivalent.
echo $obj->property1;
echo $obj->getProperty1();
echo $obj['property1']; //$obj may be an array or object
echo TPropertyAccess($obj, 'property1');
Setting a property value.
$obj1->propert1 = 'hello';
$obj->setProperty('hello');
$obj['property1'] = 'hello'; //$obj may be an array or object
TPropertyAccess($obj, 'property1', 'hello');
Subproperties are supported using the dot notation. E.g.
echo $obj->property1->property2->property3
echo TPropertyAccess::get($obj, 'property1.property2.property3');
Class hierarchy
Author: Wei Zhuo <weizho[at]gmail[dot]com>Since: 3.1
public
static
|
|
public
static
|
|
public
static
|
|