Beispiel #1
0
 /**
  * Object getter
  * @param string $a_name
  * @return mixed
  */
 public function &__get($a_name)
 {
     $g = null;
     if (!$this->m_this) {
         $g = parent::__get($a_name);
     } else {
         $g = $this->m_this->{$a_name};
     }
     return $g;
 }
 /**
  * Get property
  * @param string $a_property
  * @return mixed
  */
 public function &__get($a_property)
 {
     if ($this->hasModel($a_property)) {
         return $this->getModel($a_property);
     }
     return parent::__get($a_property);
 }
 /**
  * Get property
  * @param string $a_property
  * @return mixed
  */
 public function &__get($a_property)
 {
     $v = null;
     if ($this->hasModel($a_property)) {
         $v = $this->getModel($a_property);
         return $v;
     }
     $v = parent::__get($a_property);
     return $v;
 }
Beispiel #4
0
 public function &__get($a_property)
 {
     switch ($a_property) {
         case 'router':
             return $this->getRouter();
         case 'route':
             return $this->getRoute();
         case 'registry':
             return $this->getRegistry();
         case 'config':
             return $this->getConfig();
         case 'language':
             return $this->getLanguage();
         case 'load':
             return $this->getLoader();
         case 'acl':
             return $this->getAcl();
     }
     return parent::__get($a_property);
 }