PHP 클래스 Pop\Nav\Nav

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$acl Pop\Auth\Acl Acl object
$childLevel integer Nav child level
$config array Nav config
$nav Pop\Dom\Child Parent nav element
$parentLevel integer Nav parent level
$returnFalse boolean Return false flag
$role Pop\Auth\Role Role object
$tree array Nav tree

공개 메소드들

메소드 설명
__construct ( array $tree = null, array $config = null ) : self Constructor
__toString ( ) : string Render Nav object to string
addBranch ( array $branch, boolean $prepend = false ) : Nav Add to a nav tree branch
addLeaf ( string $branch, array $leaf, integer $pos = null, boolean $prepend = false ) : Nav Add to a leaf to nav tree branch
build ( ) : Nav Build the nav object
factory ( array $tree = null, array $config = [] ) : self Static method to instantiate the nav object and return itself to facilitate chaining methods together.
getAcl ( ) : Acl Get the Acl object
getConfig ( ) : array Get the config
getRole ( ) : Role Get the Role object
getTree ( ) : array Get the nav tree
isReturnFalse ( ) : boolean Set the return false flag
nav ( ) : Child Get the nav object
rebuild ( ) : Nav Re-build the nav object
render ( boolean $ret = false ) : mixed Render the nav object
returnFalse ( boolean $return ) : Nav Set the return false flag
setAcl ( Acl $acl = null ) : Nav Set the Acl object
setConfig ( array $config = null ) : Nav Set the nav tree
setRole ( Role $role = null ) : Nav Set the Role object
setTree ( array $tree = null ) : Nav Set the nav tree

보호된 메소드들

메소드 설명
traverse ( array $tree, integer $depth = 1, string $parentHref = null ) : Child Traverse the config object
traverseTree ( array $tree, string $branch, array $newLeaf, integer $pos = null, boolean $prepend = false, integer $depth ) : array Traverse tree to insert new leaf

메소드 상세

__construct() 공개 메소드

Instantiate the nav object
public __construct ( array $tree = null, array $config = null ) : self
$tree array
$config array
리턴 self

__toString() 공개 메소드

Render Nav object to string
public __toString ( ) : string
리턴 string

addBranch() 공개 메소드

Add to a nav tree branch
public addBranch ( array $branch, boolean $prepend = false ) : Nav
$branch array
$prepend boolean
리턴 Nav

addLeaf() 공개 메소드

Add to a leaf to nav tree branch
public addLeaf ( string $branch, array $leaf, integer $pos = null, boolean $prepend = false ) : Nav
$branch string
$leaf array
$pos integer
$prepend boolean
리턴 Nav

build() 공개 메소드

Build the nav object
public build ( ) : Nav
리턴 Nav

factory() 공개 정적인 메소드

Static method to instantiate the nav object and return itself to facilitate chaining methods together.
public static factory ( array $tree = null, array $config = [] ) : self
$tree array
$config array
리턴 self

getAcl() 공개 메소드

Get the Acl object
public getAcl ( ) : Acl
리턴 Pop\Auth\Acl

getConfig() 공개 메소드

Get the config
public getConfig ( ) : array
리턴 array

getRole() 공개 메소드

Get the Role object
public getRole ( ) : Role
리턴 Pop\Auth\Role

getTree() 공개 메소드

Get the nav tree
public getTree ( ) : array
리턴 array

isReturnFalse() 공개 메소드

Set the return false flag
public isReturnFalse ( ) : boolean
리턴 boolean

nav() 공개 메소드

Get the nav object
public nav ( ) : Child
리턴 Pop\Dom\Child

rebuild() 공개 메소드

Re-build the nav object
public rebuild ( ) : Nav
리턴 Nav

render() 공개 메소드

Render the nav object
public render ( boolean $ret = false ) : mixed
$ret boolean
리턴 mixed

returnFalse() 공개 메소드

Set the return false flag
public returnFalse ( boolean $return ) : Nav
$return boolean
리턴 Nav

setAcl() 공개 메소드

Set the Acl object
public setAcl ( Acl $acl = null ) : Nav
$acl Pop\Auth\Acl
리턴 Nav

setConfig() 공개 메소드

Set the nav tree
public setConfig ( array $config = null ) : Nav
$config array
리턴 Nav

setRole() 공개 메소드

Set the Role object
public setRole ( Role $role = null ) : Nav
$role Pop\Auth\Role
리턴 Nav

setTree() 공개 메소드

Set the nav tree
public setTree ( array $tree = null ) : Nav
$tree array
리턴 Nav

traverse() 보호된 메소드

Traverse the config object
protected traverse ( array $tree, integer $depth = 1, string $parentHref = null ) : Child
$tree array
$depth integer
$parentHref string
리턴 Pop\Dom\Child

traverseTree() 보호된 메소드

Traverse tree to insert new leaf
protected traverseTree ( array $tree, string $branch, array $newLeaf, integer $pos = null, boolean $prepend = false, integer $depth ) : array
$tree array
$branch string
$newLeaf array
$pos integer
$prepend boolean
$depth integer
리턴 array

프로퍼티 상세

$acl 보호되어 있는 프로퍼티

Acl object
protected Acl,Pop\Auth $acl
리턴 Pop\Auth\Acl

$childLevel 보호되어 있는 프로퍼티

Nav child level
protected int $childLevel
리턴 integer

$config 보호되어 있는 프로퍼티

Nav config
protected array $config
리턴 array

$nav 보호되어 있는 프로퍼티

Parent nav element
protected Child,Pop\Dom $nav
리턴 Pop\Dom\Child

$parentLevel 보호되어 있는 프로퍼티

Nav parent level
protected int $parentLevel
리턴 integer

$returnFalse 보호되어 있는 프로퍼티

Return false flag
protected bool $returnFalse
리턴 boolean

$role 보호되어 있는 프로퍼티

Role object
protected Role,Pop\Auth $role
리턴 Pop\Auth\Role

$tree 보호되어 있는 프로퍼티

Nav tree
protected array $tree
리턴 array