/** * 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()); } }
/** * 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(); }
/** * Module constructor * @param Zoombi_Object $parent * @param string $a_name */ public function __construct(Zoombi_Object &$a_parent = null, $a_name = null) { parent::__construct($a_parent, $a_name); $this->m_stack_iterator = 0; $this->m_flag = array(); $this->m_route_args = array(); $this->m_stack = array(); $this->setAcl(new Zoombi_Acl()); $this->setMode(self::MODE_NORMAL); if ($a_parent instanceof Zoombi_Module) { $this->setMode($a_parent->getMode()); $cfg = clone $a_parent->getConfig(); $cfg->unsetValue('load'); $this->setConfig($cfg); unset($cfg); $this->setBaseDir($a_parent->fromModuleDir($a_name)); } $this->setPluginManager(new Zoombi_PluginManager($this)); $this->setConfig($this->fromConfigDir('config.php')); }