public function __invoke($oContainer = null)
 {
     parent::__invoke($oContainer);
     if ($this->serviceLocator->getServiceLocator()->get('ControllerPluginManager')->has('AclPlugin')) {
         $oAclPlugin = $this->serviceLocator->getServiceLocator()->get('ControllerPluginManager')->get('AclPlugin');
         if (isset($oAclPlugin)) {
             $this->setAcl($oAclPlugin->getAcl());
             $this->setRole($oAclPlugin->getRole());
         }
     }
     return $this;
 }
 public function __invoke($ontainer, $attr = array())
 {
     $this->attr = $attr;
     return parent::__invoke($ontainer);
 }
Пример #3
0
 public function testHelperEntryPointWithContainerParam()
 {
     $returned = $this->_helper->__invoke($this->_nav2);
     $this->assertEquals($this->_helper, $returned);
     $this->assertEquals($this->_nav2, $returned->getContainer());
 }
 public function __invoke($container = null, $attribute = array())
 {
     $this->ulAttribute = $attribute;
     return parent::__invoke($container);
 }