private function getAccess() {
        if (is_null($this->access)) {
            $chain = $this->getRolesChain();
            $tmpAccess = array();

            foreach ($chain as $role) {
                $arrAccess = $this->aclModel->getAccessForARole($role['id_role']);
                foreach ($arrAccess as $accessItem) {
                    $tmpAccess[$accessItem['controller']] = explode("|",
                            $accessItem['rules']);
                }
            }
            $this->access = $tmpAccess;
            return $this->access;
        } else {
            return $this->access;
        }
    }
private function getAccess() {
        if (is_null($this->access)) {
            $chain = $this->getRolesChain();
            $tmpAccess = array();

            foreach ($chain as $role) {
                $arrAccess = $this->aclModel->getAccessForARole($role['id_role']);
                foreach ($arrAccess as $accessItem) {
                    $tmpAccess[$accessItem['controller']] = explode("|",
                            $accessItem['rules']);
                }
            }
            $this->access = $tmpAccess;
            return $this->access;
        } else {
            return $this->access;
        }
    }
private function getAccess ( ) { if ( is_null ( $ this -> access ) ) { $ chain = $ this -> getRolesChain ( ) ; $ tmpAccess = array ( ) ; foreach ( $ chain as $ role ) { $ arrAccess = $ this -> aclModel -> getAccessForARole ( $ role [ 'id_role' ] ) ; foreach ( $ arrAccess as $ accessItem ) { $ tmpAccess [ $ accessItem [ 'controller' ] ] = explode ( "|" , $ accessItem [ 'rules' ] ) ; } } $ this -> access = $ tmpAccess ; return $ this -> access ; } else { return $ this -> access ; } }
Return a normal access array.

@return array
Return a normal access array .