appendPage()
public méthode
The page can be added to the end of the hierarchy or as a subpage to any existing page.
getPageParent()
public méthode
Returns the parent name of the specified page.
public getPageParent ( Cms\Classes\Page $page ) |
$page |
Cms\Classes\Page |
Specifies a page object. |
getPageSubTree()
public méthode
Returns a part of the page hierarchy starting from the specified page.
public getPageSubTree ( Cms\Classes\Page $page ) |
$page |
Cms\Classes\Page |
Specifies a page object. |
getPageTree()
public méthode
The method uses the theme's meta/static-pages.yaml file to build the hierarchy. The pages are returned
in the order defined in the YAML file. The result of the method is used for building the back-end UI
and for generating the menus.
public getPageTree ( boolean $skipCache = false ) : array |
$skipCache |
boolean |
Indicates if objects should be reloaded from the disk bypassing the cache. |
Résultat |
array |
Returns a nested array of objects: object('page': $pageObj, 'subpages'=>[...]) |
getPagesConfig()
protected méthode
Returns the parsed meta/static-pages.yaml file contents.
listPages()
public méthode
This method is used internally by the system.
public listPages ( boolean $skipCache = false ) : array |
$skipCache |
boolean |
Indicates if objects should be reloaded from the disk bypassing the cache. |
Résultat |
array |
Returns an array of static pages. |