Property | Type | Description | |
---|---|---|---|
$basePath | string | Base path for urls | |
$documents | array | List of \Gc\Document\Model | |
$requestUri | string | Request uri | |
$useActiveBranch | boolean | Use active branch |
Method | Description | |
---|---|---|
__construct ( integer $documentId, boolean $activeBranch = false ) | Constructor, initialize documents | |
getBasePath ( ) : string | Get base Path | |
render ( array $documents = null, string $parentUrl = null ) : array | Render navigation | |
setBasePath ( string $path ) : |
Set base path for urls | |
useActiveBranch ( boolean $boolean = null ) : mixte | Constructor, initialize documents |
Method | Description | |
---|---|---|
checkDocuments ( mixed $documents ) : array | Check documents | |
hasActiveChildren ( array $pages ) : boolean | Check if page has active children | |
renderChildren ( |
Render children |
public __construct ( integer $documentId, boolean $activeBranch = false ) | ||
$documentId | integer | Document id |
$activeBranch | boolean | Use active branch or not |
protected checkDocuments ( mixed $documents ) : array | ||
$documents | mixed | List of Document\Model |
return | array |
protected hasActiveChildren ( array $pages ) : boolean | ||
$pages | array | List of pages as array |
return | boolean |
protected renderChildren ( |
||
$document | Document model | |
$parentUrl | string | Parent url |
return | void |
public setBasePath ( string $path ) : |
||
$path | string | Path |
return |
public useActiveBranch ( boolean $boolean = null ) : mixte | ||
$boolean | boolean | Set the branch is active or only one page |
return | mixte |
protected bool $useActiveBranch | ||
return | boolean |