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

Do not call this method. This is a PHP magic method that we override to allow using the following syntax to read a property: $value=$component->PropertyName; $value=$component->jsPropertyName; // return JavaScript literal and to obtain the event handler list for an event, $eventHandlerList=$component->EventName; This will also return the global event handler list when specifing an 'fx' event, $globalEventHandlerList=$component->fxEventName; When behaviors are enabled, this will return the behavior of a specific name, a property of a behavior, or an object 'on' event defined by the behavior.
public __get ( $name ) : mixed
Результат mixed the property value or the event handler list as {@link TPriorityList}
Пример #1
0
 /**
  * Magic method for reading properties.
  * This method is overriden to provide read access to the foreign objects via
  * the key names declared in the RELATIONS array.
  * @param string property name
  * @return mixed property value.
  * @since 3.1.2
  */
 public function __get($name)
 {
     if ($this->hasRecordRelation($name) && !$this->canGetProperty($name)) {
         $this->fetchResultsFor($name);
         return $this->{$name};
     }
     return parent::__get($name);
 }