Example #1
0
 /**
  * Object getter
  * @param string $a_name
  * @return mixed
  */
 public function &__get($a_name)
 {
     $var = null;
     if ($this->m_this) {
         $var = $this->m_this->{$a_name};
     }
     if ($this->m_data->has($a_name)) {
         $var = $this->m_data->get($a_name);
     }
     return $var;
 }
Example #2
0
 /**
  * Magic getter
  * @param string $a_name
  * @return mixed
  */
 public function __get($a_name)
 {
     switch ($a_name) {
         case 'module':
             return $this->getModule();
         case 'controller':
             return $this->getController();
         case 'action':
             return $this->getAction();
         case 'params':
             return $this->getParams();
         case 'query':
             return $this->getQuery();
     }
     return $this->m_query->get($a_name);
 }