class Permission extends Model

A permission that is assigned to a role

Constants

ADD_BAN

ADD_MAP

ADD_SERVER

CREATE_NEWS

CREATE_PAGE

CREATE_ROLE

CREATE_TEAM

CREATE_USER

EDIT_BAN

EDIT_MAP

EDIT_MATCH

EDIT_NEWS

EDIT_PAGE

EDIT_ROLE

EDIT_SERVER

EDIT_TEAM

EDIT_USER

ENTER_MATCH

HARD_DELETE_BAN

HARD_DELETE_MAP

HARD_DELETE_MATCH

HARD_DELETE_NEWS

HARD_DELETE_PAGE

HARD_DELETE_ROLE

HARD_DELETE_SERVER

HARD_DELETE_TEAM

HARD_DELETE_USER

PUBLISH_NEWS

PUBLISH_PAGE

SEND_PRIVATE_MSG

SOFT_DELETE_BAN

SOFT_DELETE_MATCH

SOFT_DELETE_MAP

SOFT_DELETE_NEWS

SOFT_DELETE_PAGE

SOFT_DELETE_ROLE

SOFT_DELETE_SERVER

SOFT_DELETE_TEAM

SOFT_DELETE_USER

VIEW_SERVER_LIST

VIEW_VISITOR_LOG

BYPASS_MAINTENANCE

TABLE

The name of the database table used for queries

Methods

string
getDescription()

Get the description of the permission

string
getName()

Get the name of the permission

static Permission[]
getPerms()

Get all of the existing permissions in the database

static Permission
getPermissionFromName(string|Permission $perm_name)

No description

static 
getQueryBuilder()

No description

Details

at line line 88
string getDescription()

Get the description of the permission

Return Value

string The description of the permission

at line line 97
string getName()

Get the name of the permission

Return Value

string The name of the permission

at line line 106
static Permission[] getPerms()

Get all of the existing permissions in the database

Return Value

Permission[] An array of permissions

at line line 117
static Permission getPermissionFromName(string|Permission $perm_name)

Parameters

string|Permission $perm_name

Return Value

Permission

at line line 128
static getQueryBuilder()