Ejemplo n.º 1
0
 public function init()
 {
     $this->getBootstrap()->bootstrap('logger');
     $this->getBootstrap()->bootstrap('acl');
     Fgac_Application_Acl_Engine::setup($this->getOptions());
     return Fgac_Application_Acl_Engine::getInstance();
 }
Ejemplo n.º 2
0
 public function beforeFetch($tableName, Pro_Db_Select &$select)
 {
     $fgac = Fgac_Application_Acl_Engine::getInstance();
     $acl = Zend_Registry::get($fgac->getAclAlias());
     $fgac->invoke($tableName, $acl->getCurrentHierarchy(), $select);
 }