예제 #1
0
파일: Acl.php 프로젝트: dafik/dfi
 public function init($modelName)
 {
     parent::init();
     $this->setRoles($modelName);
     $this->setResources();
     $this->setPrivilages();
     $this->setAcl();
 }
예제 #2
0
파일: Messages.php 프로젝트: dafik/dfi
 private function __construct()
 {
     parent::init();
     $this->view = new Zend_View();
     foreach ($this->types as $type) {
         $this->messages[$type] = array();
         if ($type != self::TYPE_DEBUG) {
             /** @noinspection PhpIncludeInspection */
             $this->messagesDict[$type] = (include APPLICATION_PATH . '/configs/messages/' . $type . '.php');
         }
     }
     $this->readFromSession();
 }
예제 #3
0
 public function init()
 {
     $this->_registry = new Ot_Config_Register();
     $this->_identity = Zend_Auth::getInstance()->getIdentity();
     parent::init();
 }
예제 #4
0
파일: MyCache.php 프로젝트: staser/webacula
 public function init()
 {
     $this->cache = Zend_Registry::get('cache');
     parent::init();
 }
예제 #5
0
 public function init()
 {
     $this->_logger = Zend_Registry::get('logger');
     parent::init();
 }
 public function init()
 {
     parent::init();
     // inject dependencies to action controller
     $this->container->injectOn($this->getActionController());
 }