CmsPermission View code

Simple class for dealing with a permission.

since 2.0
package

CMS

license

GPL

author

Robert Campbell calguy1000@gmail.com

Methods

__construct() 

Constructor

_insert() 

Insert a new permission

validate() 

Validate the exception

save() 

Save the permission to the database

delete() 

Delete this permission

load(string $name) : \CmsPermission

Load a permission with the specified name

static

Arguments

string $name

Response

\CmsPermission

get_perm_id(string $permname) : integer

Given a permission name, get it's id

static

Arguments

string $permname

Response

integer