Свойство | Type | Description | |
---|---|---|---|
$basePath | string | Base path for urls | |
$documents | array | List of \Gc\Document\Model | |
$requestUri | string | Request uri | |
$useActiveBranch | boolean | Use active branch |
Méthode | 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 |
Méthode | 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 |
Résultat | array |
protected hasActiveChildren ( array $pages ) : boolean | ||
$pages | array | List of pages as array |
Résultat | boolean |
protected renderChildren ( |
||
$document | Document model | |
$parentUrl | string | Parent url |
Résultat | void |
public setBasePath ( string $path ) : |
||
$path | string | Path |
Résultat |
public useActiveBranch ( boolean $boolean = null ) : mixte | ||
$boolean | boolean | Set the branch is active or only one page |
Résultat | mixte |
protected array $documents | ||
Résultat | array |
protected bool $useActiveBranch | ||
Résultat | boolean |