Prado\Web\UI\TControl::__get PHP Method

__get() public method

This overrides the parent implementation by allowing accessing a control via its ID using the following syntax, $menuBar=$this->menuBar; Note, the control must be configured in the template with explicit ID. If the name matches both a property and a control ID, the control ID will take the precedence.
See also: registerObject
public __get ( $name ) : mixed
return mixed the property value or the target control
    public function __get($name)
    {
        if (isset($this->_rf[self::RF_NAMED_OBJECTS][$name])) {
            return $this->_rf[self::RF_NAMED_OBJECTS][$name];
        } else {
            return parent::__get($name);
        }
    }
TControl