PHP Класс AclExtras, acl_extras

Наследование: extends Object
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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)

Свойство Тип Описание
$_clean boolean Internal Clean Actions switch

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
_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.

Описание методов

_checkMethods() защищенный Метод

Check and Add/delete controller Methods
protected _checkMethods ( $className, $controllerName, array $node, $pluginPath = false ) : void
$node array
Результат void

_checkNode() защищенный Метод

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
Результат array Aco Node array

_getCallbacks() защищенный Метод

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

_updateControllers() защищенный Метод

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.
Результат void

aco_sync() публичный Метод

Sync the ACO table
public aco_sync ( $params = [] ) : void
Результат void

aco_update() публичный Метод

Updates the Aco Tree with new controller actions.
public aco_update ( $params = [] ) : void
Результат void

err() публичный Метод

public err ( $msg )

getControllerList() публичный Метод

Returns an array of path => import notation.
public getControllerList ( string $plugin = null ) : array
$plugin string Name of plugin to get controllers for
Результат array

out() публичный Метод

public out ( $msg )

recover() публичный Метод

Recover an Acl Tree
public recover ( ) : void
Результат void

startup() публичный Метод

Start up And load Acl Component / Aco model
public startup ( $controller = null ) : void
Результат void

verify() публичный Метод

Verify a Acl Tree
public verify ( ) : void
Результат void

Описание свойств

$Acl публичное свойство

Contains instance of AclComponent
public AclComponent $Acl
Результат AclComponent

$_clean защищенное свойство

Internal Clean Actions switch
protected bool $_clean
Результат boolean

$args публичное свойство

Contains arguments parsed from the command line.
public array $args
Результат array

$dataSource публичное свойство

Contains database source to use
public string $dataSource
Результат string

$rootNode публичное свойство

Root node name.
public string $rootNode
Результат string