appendPage()
public method
The page can be added to the end of the hierarchy or as a subpage to any existing page.
getPageParent()
public method
Returns the parent name of the specified page.
public getPageParent ( Cms\Classes\Page $page ) |
$page |
Cms\Classes\Page |
Specifies a page object. |
getPageSubTree()
public method
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 method
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. |
return |
array |
Returns a nested array of objects: object('page': $pageObj, 'subpages'=>[...]) |
getPagesConfig()
protected method
Returns the parsed meta/static-pages.yaml file contents.
listPages()
public method
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. |
return |
array |
Returns an array of static pages. |