Prado\TComponent::setSubProperty PHP Метод

setSubProperty() публичный Метод

A property path is a sequence of property names concatenated by '.' character. For example, 'Parent.Page' refers to the 'Page' property of the component's 'Parent' property value (which should be a component also). When a property is not defined by an object, this also loops through all active behaviors of the object.
public setSubProperty ( $path, $value )
    public function setSubProperty($path, $value)
    {
        $object = $this;
        if (($pos = strrpos($path, '.')) === false) {
            $property = $path;
        } else {
            $object = $this->getSubProperty(substr($path, 0, $pos));
            $property = substr($path, $pos + 1);
        }
        $object->{$property} = $value;
    }