Свойство | Тип | Описание | |
---|---|---|---|
$Acl | 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. |
Свойство | Тип | Описание | |
---|---|---|---|
$_clean | boolean | Internal Clean Actions switch | |
$foundACOs | array | List of ACOs found during synchronization | |
$pluginPrefixes | array | Contains plugins route prefixes | |
$prefixes | array | Contains app route prefixes |
Метод | Описание | |
---|---|---|
acoSync ( array $params = [] ) : void | Sync the ACO table | |
acoUpdate ( array $params = [] ) : boolean | Updates the Aco Tree with new controller actions. | |
err ( string $msg ) : void | Output an error message. | |
getControllerList ( string $plugin = null, string $prefix = null ) : array | Get a list of controllers in the app and plugins. | |
out ( string $msg ) : void | Output a message. | |
recover ( ) : void | Recover an Acl Tree | |
startup ( |
Start up And load Acl Component / Aco model |
Метод | Описание | |
---|---|---|
_buildPrefixes ( ) : void | Build prefixes for App and Plugins based on configured routes | |
_checkMethods ( string $className, string $controllerName, array $node, string $pluginPath = null, string $prefixPath = null ) : boolean | 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. | |
_cleaner ( integer $parentId, array $preservedItems = [] ) : void | Delete unused ACOs. | |
_getCallbacks ( string $className, string $pluginPath = null, string $prefixPath = null ) : array | Get a list of registered callback methods | |
_getNamespace ( string $className, string $pluginPath = null, string $prefixPath = null ) : string | Get the namespace for a given class. | |
_pluginAlias ( string $plugin ) : string | Returns the aliased name for the plugin (Needed in order to correctly handle nested plugins) | |
_processControllers ( Acl\Model\Entity\Aco $root ) : void | Updates the Aco Tree with all App controllers. | |
_processPlugins ( Acl\Model\Entity\Aco $root, array $plugins = [] ) : void | Updates the Aco Tree with all Plugins. | |
_processPrefixes ( Acl\Model\Entity\Aco $root ) : void | Updates the Aco Tree with all App route prefixes. | |
_updateControllers ( array $root, array $controllers, string $plugin = null, string $prefix = null ) : array | Updates a collection of controllers. |
protected _buildPrefixes ( ) : void | ||
Результат | void |
protected _checkMethods ( string $className, string $controllerName, array $node, string $pluginPath = null, string $prefixPath = null ) : boolean | ||
$className | string | The classname to check |
$controllerName | string | The controller name |
$node | array | The node to check. |
$pluginPath | string | The plugin path to use. |
$prefixPath | string | The prefix path to use. |
Результат | boolean |
protected _pluginAlias ( string $plugin ) : string | ||
$plugin | string | The name of the plugin to alias |
Результат | string |
protected _processControllers ( Acl\Model\Entity\Aco $root ) : void | ||
$root | Acl\Model\Entity\Aco | The root note of Aco Tree |
Результат | void |
protected _processPlugins ( Acl\Model\Entity\Aco $root, array $plugins = [] ) : void | ||
$root | Acl\Model\Entity\Aco | The root note of Aco Tree |
$plugins | array | list of App plugins |
Результат | void |
protected _processPrefixes ( Acl\Model\Entity\Aco $root ) : void | ||
$root | Acl\Model\Entity\Aco | The root note of Aco Tree |
Результат | void |
protected _updateControllers ( array $root, array $controllers, string $plugin = null, string $prefix = null ) : array | ||
$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. |
$prefix | string | Name of the prefix you are making controllers for. |
Результат | array |
public AclComponent,Acl\Controller\Component $Acl | ||
Результат |
public array $args | ||
Результат | array |
public string $dataSource | ||
Результат | string |
protected array $foundACOs | ||
Результат | array |
protected array $pluginPrefixes | ||
Результат | array |