protected static function get_permissions_name() {
        $strpermissions = array(
            CAP_INHERIT => get_string('inherit', 'role'),
            CAP_ALLOW => get_string('allow', 'role'),
            CAP_PREVENT => get_string('prevent', 'role'),
            CAP_PROHIBIT => get_string('prohibit', 'role')
        );
        return $strpermissions;
    }
protected static function get_permissions_name() {
        $strpermissions = array(
            CAP_INHERIT => get_string('inherit', 'role'),
            CAP_ALLOW => get_string('allow', 'role'),
            CAP_PREVENT => get_string('prevent', 'role'),
            CAP_PROHIBIT => get_string('prohibit', 'role')
        );
        return $strpermissions;
    }
protected static function get_permissions_name ( ) { $ strpermissions = array ( CAP_INHERIT => get_string ( 'inherit' , 'role' ) , CAP_ALLOW => get_string ( 'allow' , 'role' ) , CAP_PREVENT => get_string ( 'prevent' , 'role' ) , CAP_PROHIBIT => get_string ( 'prohibit' , 'role' ) ) ; return $ strpermissions ; }
Get all the permissions name in a simple array.

@return array Array of permissions name.
Get all the permissions name in a simple array .