Role

Summary
Role
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
See AlsoCts_Controller_Action_Abstract
Instance Methods
initInvoked automatically when an instance is created.
Actions
indexDescription of what this action does.
editCreates or edits roles.
deleteDelete a role.

Author

Jaybill McCarthy

Instance Methods

init

function init()

Invoked automatically when an instance is created.  Initializes the current instance.  Also initializes the parent object (calls init() on the parent instance).

Actions

index

function indexAction()

Description of what this action does.

View Variables

rolesarray containing all roles from the db.  Uses RolesIndex view.

edit

function editAction()

Creates or edits roles.

HTTP GET or POST Parameters

paramdescription of param

Registry Values

registry_valuedescription of registry value used in this action

Plugin Hooks

  • hook_name (filter|action) - description of when hook is called
param param_namedescription of param passed to hook

View Variables

$view_varDescription of variable that gets passed to view

delete

function deleteAction()

Delete a role.

HTTP POST Parameters

deleteValue must be yes or this doesn’t work.
idThe id of the role we’re editing (mainly for redirect purposes).

View Variables

rolearray containing the role
successsuccess message, if any
errorsarray of error messages, if any
function init()
Invoked automatically when an instance is created.
function indexAction()
Description of what this action does.
function editAction()
Creates or edits roles.
function deleteAction()
Delete a role.
Close