Пример #1
0
 /**
  * Constructor
  * @param Zoombi_Object $a_parent
  * @param string $a_name
  */
 function __construct(Zoombi_Object &$a_parent = null, $a_name = null)
 {
     parent::__construct($a_parent, $a_name);
     $this->m_plugins = array();
     if ($a_parent) {
         $this->setTarget($a_parent->getDispatcher());
     }
 }
Пример #2
0
 /**
  * Constructor
  */
 function __construct(Zoombi_Object &$a_parent = null, $a_name = null)
 {
     parent::__construct($a_parent, $a_name);
     $this->m_models = array();
     $this->m_controllers = array();
     $this->m_library = array();
     $this->m_plugins = array();
     $this->m_modules = array();
 }
Пример #3
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);
 }
Пример #4
0
 /**
  * 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;
 }