Class PhpgaclPermissionsController

Description

Actions to manage permissions in phpGACL.

  • since: 1.0
  • author: Mariano Iglesias

Located in /plugins/phpgacl/controllers/phpgacl_permissions_controller.php (line 24)

AppController
   |
   --PhpgaclAppController
      |
      --PhpgaclPermissionsController
Variable Summary
array $components
array $helpers
string $name
array $uses
Method Summary
void beforeFilter ()
void beforeRender ()
void check ([string $value = null])
void delete (string $value, string $id)
void edit (string $value, [string $id = null])
void index ([string $value = null])
Variables
array $components = array( 'PhpGacl', 'Session' ) (line 43)

Components used by this controller.

  • since: 1.0
  • access: protected

Redefinition of:
PhpgaclAppController::$components
Components used by all controllers.
array $helpers = array( 'Javascript', 'PhpgaclHtml' ) (line 51)

Helpers used by this controller.

  • since: 1.0
  • access: protected

Redefinition of:
PhpgaclAppController::$helpers
Helpers used by all controllers.
string $name = 'PhpgaclPermissions' (line 35)

Name of the controller.

  • since: 1.0
  • access: protected
array $uses = array('PhpgaclAro', 'PhpgaclAroGroup') (line 59)

Models used by this controller.

  • since: 1.0
  • access: protected

Inherited Variables

Inherited from PhpgaclAppController

PhpgaclAppController::$pluginUrl
Methods
beforeFilter (line 68)

Runs before the action is executed. Used to make sure phpGACL is installed.

  • since: 1.0
  • access: protected
void beforeFilter ()

Redefinition of:
PhpgaclAppController::beforeFilter()
Runs before the action is executed. Used to make sure phpGACL is installed.
beforeRender (line 81)

Runs after the action has been executed, and before the view is rendered.

  • since: 1.0
  • access: protected
void beforeRender ()

Redefinition of:
PhpgaclAppController::beforeRender()
Runs after the action has been executed, and before the view is rendered.
check (line 96)

If $value not selected, present the list of groups. If $value selected, run a check on available permissions.

  • since: 1.0
  • access: public
void check ([string $value = null])
  • string $value: Group identifier
delete (line 629)

Delete permission from group.

  • since: 1.0
  • access: public
void delete (string $value, string $id)
  • string $value: Group identifier.
  • string $id: Group internal identifier (as obtained by _getGroupPermissions())
edit (line 325)

Edit or add new permission for a group.

  • since: 1.0
  • access: public
void edit (string $value, [string $id = null])
  • string $value: Group identifier.
  • string $id: Group internal identifier (as obtained by _getGroupPermissions())
index (line 677)

List permissions for a group. If $value not specified, show list of groups.

  • since: 1.0
  • access: public
void index ([string $value = null])
  • string $value: Group identifier.

Inherited Methods

Inherited From PhpgaclAppController

PhpgaclAppController::beforeFilter()
PhpgaclAppController::beforeRender()

Documentation generated on Thu, 08 Mar 2007 21:52:56 -0300 by phpDocumentor 1.3.1