PHP 클래스 AclExtras, acl_extras

상속: extends Object
파일 보기 프로젝트 열기: markstory/acl_extras 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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.

보호된 프로퍼티들

프로퍼티 타입 설명
$_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