Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (null == self::$_instance) {
         $session = new Zend_Session_Namespace(self::SESSION_ALIAS);
         if (null == $session->acl) {
             self::$_instance = new self();
             $session->acl = serialize(self::$_instance);
         } else {
             self::$_instance = unserialize($session->acl);
         }
     }
     return self::$_instance;
 }
Ejemplo n.º 2
0
 /**
  * Strategy pattern: initialize resource
  *
  * @return mixed
  */
 public function init()
 {
     $this->getBootstrap()->bootstrap('logger');
     $acl = Acl_Application_Acl::getInstance();
     Zend_Registry::set(Acl_Application_Acl::REGISTER_ALIAS, $acl);
 }