public function getPermissions()
    {
        $registry = $this->getService('application.registry');
        $key = $this->getIdentifier().'-permissions';

        if (!$registry->offsetExists($key)) {
            $registry->offsetSet($key, self::_getDefaultPermissions($this));
        }

        return $registry->offsetGet($key);
    }
public function getPermissions()
    {
        $registry = $this->getService('application.registry');
        $key = $this->getIdentifier().'-permissions';

        if (!$registry->offsetExists($key)) {
            $registry->offsetSet($key, self::_getDefaultPermissions($this));
        }

        return $registry->offsetGet($key);
    }
public function getPermissions ( ) { $ registry = $ this -> getService ( 'application.registry' ) ; $ key = $ this -> getIdentifier ( ) . '-permissions' ; if ( ! $ registry -> offsetExists ( $ key ) ) { $ registry -> offsetSet ( $ key , self :: _getDefaultPermissions ( $ this ) ) ; } return $ registry -> offsetGet ( $ key ) ; }
Return an array of permission object.

@return array
Return an array of permission object .