| Resource | |
| Author | Jaybill McCarthy |
| License | http://communit.as/docs/license |
| See Also | Cts_Controller_Action_Abstract Cts_Controller_Action_Admin |
| Instance Methods | |
| init | Invoked automatically when an instance is created. |
| Actions | |
| edit | Edit which resources a role has access to by module. |
| Private or Protected Methods | |
| isResourceInherited | Used by edit to determine if the permissions on a resource are inherited from another role. |
function editAction()
Edit which resources a role has access to by module.
| id | role id to edit resources for (id, not shortname) |
| modid | module id of module to edit resources for. defaults to ‘default’ |
| actions | An array of all available actions in the app. |
| pagetitle | The HTML page title. |
| role | array containing the role information for the chosen role |
| modid | id of the current module |
| module_title | Name of the current module, pulled from module.ini |
| enabled_modules | An array of modules that are currently enabled |
protected function isResourceInherited( $module, $controller, $action, $role_id )
Used by edit to determine if the permissions on a resource are inherited from another role.
| $module | The name of the module for the resource in question. |
| $controller | The name of the controller for the resource in question. |
| $action | The name of the action for the resource in question. |
| $role_id | The ID of the role in question. |
A boolean indicating whether the permissions on the indicated resource are inherited from another role.
Invoked automatically when an instance is created.
function init()
Edit which resources a role has access to by module.
function editAction()
Used by edit to determine if the permissions on a resource are inherited from another role.
protected function isResourceInherited( $module, $controller, $action, $role_id )