PHP Class AclExtras, acl_extras

Inheritance: extends Object
Afficher le fichier Open project: markstory/acl_extras Class Usage Examples

Méthodes publiques

Свойство Type Description
$Acl AclComponent Contains instance of AclComponent
$args array Contains arguments parsed from the command line.
$dataSource string Contains database source to use
$rootNode string Root node name.

Protected Properties

Свойство Type Description
$_clean boolean Internal Clean Actions switch

Méthodes publiques

Méthode Description
aco_sync ( $params = [] ) : void Sync the ACO table
aco_update ( $params = [] ) : void Updates the Aco Tree with new controller actions.
err ( $msg )
getControllerList ( string $plugin = null ) : array Get a list of controllers in the app and plugins.
out ( $msg )
recover ( ) : void Recover an Acl Tree
startup ( $controller = null ) : void Start up And load Acl Component / Aco model
verify ( ) : void Verify a Acl Tree

Méthodes protégées

Méthode Description
_checkMethods ( $className, $controllerName, array $node, $pluginPath = false ) : void Check and Add/delete controller Methods
_checkNode ( string $path, string $alias, integer $parentId = null ) : array Check a node for existance, create it if it doesn't exist.
_getCallbacks ( $className ) Get a list of registered callback methods
_updateControllers ( array $root, array $controllers, string $plugin = null ) : void Updates a collection of controllers.

Method Details

_checkMethods() protected méthode

Check and Add/delete controller Methods
protected _checkMethods ( $className, $controllerName, array $node, $pluginPath = false ) : void
$node array
Résultat void

_checkNode() protected méthode

Check a node for existance, create it if it doesn't exist.
protected _checkNode ( string $path, string $alias, integer $parentId = null ) : array
$path string
$alias string
$parentId integer
Résultat array Aco Node array

_getCallbacks() protected méthode

Get a list of registered callback methods
protected _getCallbacks ( $className )

_updateControllers() protected méthode

Updates a collection of controllers.
protected _updateControllers ( array $root, array $controllers, string $plugin = null ) : void
$root array Array or ACO information for root node.
$controllers array Array of Controllers
$plugin string Name of the plugin you are making controllers for.
Résultat void

aco_sync() public méthode

Sync the ACO table
public aco_sync ( $params = [] ) : void
Résultat void

aco_update() public méthode

Updates the Aco Tree with new controller actions.
public aco_update ( $params = [] ) : void
Résultat void

err() public méthode

public err ( $msg )

getControllerList() public méthode

Returns an array of path => import notation.
public getControllerList ( string $plugin = null ) : array
$plugin string Name of plugin to get controllers for
Résultat array

out() public méthode

public out ( $msg )

recover() public méthode

Recover an Acl Tree
public recover ( ) : void
Résultat void

startup() public méthode

Start up And load Acl Component / Aco model
public startup ( $controller = null ) : void
Résultat void

verify() public méthode

Verify a Acl Tree
public verify ( ) : void
Résultat void

Property Details

$Acl public_oe property

Contains instance of AclComponent
public AclComponent $Acl
Résultat AclComponent

$_clean protected_oe property

Internal Clean Actions switch
protected bool $_clean
Résultat boolean

$args public_oe property

Contains arguments parsed from the command line.
public array $args
Résultat array

$dataSource public_oe property

Contains database source to use
public string $dataSource
Résultat string

$rootNode public_oe property

Root node name.
public string $rootNode
Résultat string