$tree
$tree : array
Nav tree
Nav class
$acl : \Pop\Acl\Acl
Acl object
$nav : \Pop\Dom\Child
Parent nav element
returnFalse(boolean $return) : \Pop\Nav\Nav
Set the return false flag
boolean | $return |
setTree(array $tree = null) : \Pop\Nav\Nav
Set the nav tree
array | $tree |
addBranch(array $branch, boolean $prepend = false) : \Pop\Nav\Nav
Add to a nav tree branch
array | $branch | |
boolean | $prepend |
addLeaf(string $branch, array $leaf, integer $pos = null, boolean $prepend = false) : \Pop\Nav\Nav
Add to a leaf to nav tree branch
string | $branch | |
array | $leaf | |
integer | $pos | |
boolean | $prepend |
setConfig(array $config = null) : \Pop\Nav\Nav
Set the nav tree
array | $config |
setAcl(\Pop\Acl\Acl $acl = null) : \Pop\Nav\Nav
Set the Acl object
\Pop\Acl\Acl | $acl |
setRole(\Pop\Acl\AclRole $role = null) : \Pop\Nav\Nav
Set a AclRole object (alias method)
\Pop\Acl\AclRole | $role |
addRole(\Pop\Acl\AclRole $role = null) : \Pop\Nav\Nav
Add a AclRole object
\Pop\Acl\AclRole | $role |
addRoles(array $roles) : \Pop\Nav\Nav
Add AclRole objects
array | $roles |
setAclStrict(boolean $strict) : \Pop\Nav\Nav
Set the Acl object as strict evaluation
boolean | $strict |
setIndent(string $indent) : \Pop\Nav\Nav
Set the indent
string | $indent |
setBaseUrl(string $baseUrl) : \Pop\Nav\Nav
Set the base URL
string | $baseUrl |
getAcl() : \Pop\Acl\Acl
Get the Acl object
getRole(string $name) : \Pop\Acl\AclRole
Get a AclRole object
string | $name |
build() : \Pop\Nav\Nav
Build the nav object
rebuild() : \Pop\Nav\Nav
Re-build the nav object
nav() : \Pop\Dom\Child
Get the nav object
traverse(array $tree, integer $depth = 1, string $parentHref = null) : \Pop\Dom\Child
Traverse the config object
array | $tree | |
integer | $depth | |
string | $parentHref |