library/Garp/Application/Resource/Acl.php
public function getAcl() {
        $options = $this->getOptions();
        if ($this->_acl === null) {
            $this->_acl = Zend_Registry::isRegistered(self::DEFAULT_REGISTRY_KEY) ?
                Zend_Registry::get(self::DEFAULT_REGISTRY_KEY) : new Zend_Acl();


            $roles = array();
            $resources = array();

            if (isset($options['roles'])) {
                $roles = $options['roles'];
            }

            if (isset($options['resources'])) {
                $resources = $options['resources'];
            }

            $this->_addRoles($roles);
            $this->_addResources($resources);
        }

        return $this->_acl;
    }
public function getAcl() {
        $options = $this->getOptions();
        if ($this->_acl === null) {
            $this->_acl = Zend_Registry::isRegistered(self::DEFAULT_REGISTRY_KEY) ?
                Zend_Registry::get(self::DEFAULT_REGISTRY_KEY) : new Zend_Acl();


            $roles = array();
            $resources = array();

            if (isset($options['roles'])) {
                $roles = $options['roles'];
            }

            if (isset($options['resources'])) {
                $resources = $options['resources'];
            }

            $this->_addRoles($roles);
            $this->_addResources($resources);
        }

        return $this->_acl;
    }
public function getAcl ( ) { $ options = $ this -> getOptions ( ) ; if ( $ this -> _acl === null ) { $ this -> _acl = Zend_Registry :: isRegistered ( self :: DEFAULT_REGISTRY_KEY ) ? Zend_Registry :: get ( self :: DEFAULT_REGISTRY_KEY ) : new Zend_Acl ( ) ; $ roles = array ( ) ; $ resources = array ( ) ; if ( isset ( $ options [ 'roles' ] ) ) { $ roles = $ options [ 'roles' ] ; } if ( isset ( $ options [ 'resources' ] ) ) { $ resources = $ options [ 'resources' ] ; } $ this -> _addRoles ( $ roles ) ; $ this -> _addResources ( $ resources ) ; } return $ this -> _acl ; }
Retrieve ACL object

@return Zend_Acl
Retrieve ACL object