CmsPermission
in package
FinalYes
Simple class for dealing with a permission.
Tags
Table of Contents
Methods
- __construct() : mixed
- Constructor
- delete() : mixed
- Delete this permission
- get_perm_id() : int
- Given a permission name, get it's id
- load() : CmsPermission
- Load a permission with the specified name
- save() : mixed
- Save the permission to the database
- validate() : mixed
- Validate the exception
- _insert() : mixed
- Insert a new permission
Methods
__construct()
Constructor
public
__construct() : mixed
delete()
Delete this permission
public
delete() : mixed
Tags
get_perm_id()
Given a permission name, get it's id
public
static get_perm_id(string $permname) : int
Parameters
- $permname : string
Return values
intload()
Load a permission with the specified name
public
static & load(string $name) : CmsPermission
Parameters
- $name : string
Return values
CmsPermissionsave()
Save the permission to the database
public
save() : mixed
Tags
validate()
Validate the exception
public
validate() : mixed
Tags
_insert()
Insert a new permission
protected
_insert() : mixed