示例#1
0
 /**
  * This method is overridden to support accessing components and custom settings like reading properties.
  * 
  * @param string $name component, property or static name
  * @return mixed
  */
 public function __get($name)
 {
     if ($has = $this->getProperty($name)) {
         return $has;
     }
     if (($config = $this->getConfig($name)) && !empty($config)) {
         $this->set($name, $config);
         return $this->get($name);
     }
     return parent::__get($name);
 }