Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Acl_Root');
     $acl = new Kwf_Acl();
     $this->_acl = $acl->getComponentAcl();
     $acl->addRole(new Kwf_Acl_Role('test', 'MainRole'));
     $acl->addRole(new Kwf_Acl_Role_Additional('testsub', 'SubRole', 'test'));
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_PagesController_PagesGeneratorActions_Root');
     $acl = new Kwf_Acl();
     $this->_acl = $acl->getComponentAcl();
     $acl->addRole(new Zend_Acl_Role('test'));
     $this->_acl->allowComponent('test', null);
     $acl->addRole(new Zend_Acl_Role('special'));
     $this->_acl->allowComponent('special', 'Kwf_Component_PagesController_PagesGeneratorActions_SpecialComponent');
     $this->_acl->allowComponent('special', 'Kwf_Component_PagesController_PagesGeneratorActions_SpecialWithoutEditComponent');
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_PagesController_WithCategories_Root');
     $acl = new Kwf_Acl();
     $this->_acl = $acl->getComponentAcl();
     $acl->addRole(new Zend_Acl_Role('test'));
     $this->_acl->allowComponent('test', null);
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp('Kwf_Component_Acl_AllowedComponents_Root');
     $acl = new Kwf_Acl();
     $this->_acl = $acl->getComponentAcl();
     $acl->addRole(new Zend_Acl_Role('special'));
     $this->_acl->allowComponent('special', 'Kwf_Component_Acl_AllowedComponents_Special');
 }