protected function getUsedPrivileges()
    {
        if (! $this->usedPrivileges) {
            $privileges = $this->menu->getUsedPrivileges();

            asort($privileges);
            //don't allow to edit the pr.nologin and pr.islogin privilege
            unset($privileges['pr.nologin']);
            unset($privileges['pr.islogin']);

            $this->usedPrivileges = $privileges;
        }

        return $this->usedPrivileges;
    }
protected function getUsedPrivileges()
    {
        if (! $this->usedPrivileges) {
            $privileges = $this->menu->getUsedPrivileges();

            asort($privileges);
            //don't allow to edit the pr.nologin and pr.islogin privilege
            unset($privileges['pr.nologin']);
            unset($privileges['pr.islogin']);

            $this->usedPrivileges = $privileges;
        }

        return $this->usedPrivileges;
    }
protected function getUsedPrivileges ( ) { if ( ! $ this -> usedPrivileges ) { $ privileges = $ this -> menu -> getUsedPrivileges ( ) ; asort ( $ privileges ) ; //don't allow to edit the pr.nologin and pr.islogin privilege unset ( $ privileges [ 'pr.nologin' ] ) ; unset ( $ privileges [ 'pr.islogin' ] ) ; $ this -> usedPrivileges = $ privileges ; } return $ this -> usedPrivileges ; }
Get the privileges a role can have.

@return array
Get the privileges a role can have .