Méthode | Description | |
---|---|---|
buildCache ( string $language = null ) | Build the cache | |
copy ( string $from, string $to ) | Copy pages | |
createHtml ( string $type = 'page', integer $depth, integer $parentId = 1, string $html = '' ) : string | Creates the html for the menu | |
delete ( integer $id, string $language = null, integer $revisionId = null ) : boolean | Delete a page | |
exists ( integer $id ) : boolean | Check if a page exists | |
get ( integer $id, integer $revisionId = null, string $language = null ) : mixed | Get the data for a record | |
getBlocks ( integer $id, integer $revisionId = null, string $language = null ) : array | Get blocks for a certain page/revision | |
getByTag ( integer $tagId ) : array | Get all items by a given tag id | |
getCacheBuilder ( ) : |
||
getEncodedRedirectURL ( string $redirectURL ) : string | Get encoded redirect URL | |
getFirstChildId ( integer $pageId ) : mixed | Get the first child for a given parent | |
getFullURL ( integer $id ) : string | Get the full-URL for a given menuId | |
getLatestRevision ( integer $id, string $language = null ) : integer | Get latest revision id for a page. | |
getMaximumBlockId ( ) : integer | Get the maximum unique id for blocks | |
getMaximumPageId ( string $language = null ) : integer | Get the maximum unique id for pages | |
getMaximumSequence ( integer $parentId, string $language = null ) : integer | Get the maximum sequence inside a leaf | |
getPagesForDropdown ( string $language = null ) : array | Get the pages for usage in a dropdown menu | |
getSubtree ( array $navigation, integer $parentId ) : string | Get the subtree for a root element | |
getTree ( array $ids, array $data = null, integer $level = 1, string $language = null ) : array | Get all pages/level | |
getTreeHTML ( ) : string | Get the tree | |
getTypes ( ) : array | Get the possible block types | |
getURL ( string $url, integer $id = null, integer $parentId, boolean $isAction = false ) : string | Get an unique URL for a page | |
insert ( array $page ) : integer | Insert a page | |
insertBlocks ( array $blocks ) | Insert multiple blocks at once | |
move ( integer $id, integer $droppedOn, string $typeOfDrop, string $tree, string $language = null ) : boolean | Move a page | |
update ( array $page ) : integer | Update a page | |
updatePagesTemplates ( integer $oldTemplateId, integer $newTemplateId, boolean $overwrite = false ) | Switch templates for all existing pages |
public static buildCache ( string $language = null ) | ||
$language | string | The language to build the cache for, if not passed we use the working language. |
public static delete ( integer $id, string $language = null, integer $revisionId = null ) : boolean | ||
$id | integer | The id of the page to delete. |
$language | string | The language wherein the page will be deleted, if not provided we will use the working language. |
$revisionId | integer | If specified the given revision will be deleted, used for deleting drafts. |
Résultat | boolean |
public static get ( integer $id, integer $revisionId = null, string $language = null ) : mixed | ||
$id | integer | The Id of the page to fetch. |
$revisionId | integer | |
$language | string | The language to use while fetching the page. |
Résultat | mixed | False if the record can't be found, otherwise an array with all data. |
public static getCacheBuilder ( ) : |
||
Résultat |
public static getEncodedRedirectURL ( string $redirectURL ) : string | ||
$redirectURL | string | |
Résultat | string |
public static getFirstChildId ( integer $pageId ) : mixed | ||
$pageId | integer | The Id of the page to get the first child for. |
Résultat | mixed |
public static getFullURL ( integer $id ) : string | ||
$id | integer | The Id of the page to get the URL for. |
Résultat | string |
public static getMaximumBlockId ( ) : integer | ||
Résultat | integer |
public static getMaximumPageId ( string $language = null ) : integer | ||
$language | string | The language to use, if not provided we will use the working language. |
Résultat | integer |
public static getPagesForDropdown ( string $language = null ) : array | ||
$language | string | The language to use, if not provided we will use the working language. |
Résultat | array |
public static getTreeHTML ( ) : string | ||
Résultat | string |
public static insertBlocks ( array $blocks ) | ||
$blocks | array | The blocks to insert. |
public static move ( integer $id, integer $droppedOn, string $typeOfDrop, string $tree, string $language = null ) : boolean | ||
$id | integer | The id for the page that has to be moved. |
$droppedOn | integer | The id for the page where to page has been dropped on. |
$typeOfDrop | string | The type of drop, possible values are: before, after, inside. |
$tree | string | The tree the item is dropped on, possible values are: main, meta, footer, root. |
$language | string | The language to use, if not provided we will use the working language. |
Résultat | boolean |