PHP Class RoleController, vanilla

Inheritance: extends QFrame_Controller_Admin
Exibir arquivo Open project: vanilla/vanilla Class Usage Examples

Public Properties

Property Type Description
$RoleModel RoleModel
$Uses Models to automatically instantiate.

Public Methods

Method Description
__construct ( ) RoleController constructor.
add ( ) Create new role.
delete ( $RoleID = false ) Remove a role.
edit ( $RoleID = false ) Edit a role.
index ( $roleID = null ) Show list of roles.
initialize ( ) Set menu path. Automatically run on every use.

Protected Methods

Method Description
_permission ( $RoleID = null ) Do permission check.
removeRankPermissions ( )

Method Details

__construct() public method

RoleController constructor.
public __construct ( )

_permission() protected method

Do permission check.
Since: 2.0.0
protected _permission ( $RoleID = null )

add() public method

Create new role.
Since: 2.0.0
public add ( )

delete() public method

Remove a role.
Since: 2.0.0
public delete ( $RoleID = false )

edit() public method

Edit a role.
Since: 2.0.0
public edit ( $RoleID = false )

index() public method

Show list of roles.
Since: 2.0.0
public index ( $roleID = null )

initialize() public method

Set menu path. Automatically run on every use.
Since: 2.0.0
public initialize ( )

removeRankPermissions() protected method

protected removeRankPermissions ( )

Property Details

$RoleModel public_oe property

public RoleModel $RoleModel
return RoleModel

$Uses public_oe property

Models to automatically instantiate.
public $Uses