appendPage()
публичный Метод
The page can be added to the end of the hierarchy or as a subpage to any existing page.
getPageParent()
публичный Метод
Returns the parent name of the specified page.
public getPageParent ( Cms\Classes\Page $page ) |
$page |
Cms\Classes\Page |
Specifies a page object. |
getPageSubTree()
публичный Метод
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()
публичный Метод
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. |
Результат |
array |
Returns a nested array of objects: object('page': $pageObj, 'subpages'=>[...]) |
getPagesConfig()
защищенный Метод
Returns the parsed meta/static-pages.yaml file contents.
listPages()
публичный Метод
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. |
Результат |
array |
Returns an array of static pages. |