public function getRequiredRights() {
        $privileges = array();
        foreach ($this->getDocBlock()->getTagsByName('requiresRight') as $tag) {
            $privileges[$tag->getParameterName()] = $tag->getRightId();
        }
        return $privileges;
    }
public function getRequiredRights() {
        $privileges = array();
        foreach ($this->getDocBlock()->getTagsByName('requiresRight') as $tag) {
            $privileges[$tag->getParameterName()] = $tag->getRightId();
        }
        return $privileges;
    }
public function getRequiredRights ( ) { $ privileges = array ( ) ; foreach ( $ this -> getDocBlock ( ) -> getTagsByName ( 'requiresRight' ) as $ tag ) { $ privileges [ $ tag -> getParameterName ( ) ] = $ tag -> getRightId ( ) ; } return $ privileges ; }
Returns an array of all rights required to execute the action

The array uses the name of the parmeter as key and the value is
a string identifying the right

@return string
Returns an array of all rights required to execute the action