Method |
Description |
|
createDifferentCabinRedirect ( string $oldURL, string $newURL, string $cabin ) : boolean |
Create a redirect |
|
createDir ( string $cabin, string $path, array $post = [] ) : boolean |
Create a new page (and initial page version) |
|
createDirRedirect ( array $old, array $new ) : boolean |
Redirect a directory, and all of its pages. |
|
createPage ( string $cabin, string $path, array $post = [], boolean $publish = false, boolean $raw = true ) : boolean |
Create a new page (and initial page version) |
|
createPageRedirect ( array $old, array $new, boolean $allowCrossCabin = false ) : boolean |
Create a page redirect |
|
createRedirectsForMove ( array $old, array $new ) : boolean |
Create the redirects necessary for a directory being moved. |
|
createSameCabinRedirect ( string $oldURL, string $newURL, string $cabin ) : boolean |
Create a redirect |
|
deleteDir ( integer $directoryID ) : boolean |
|
|
deletePage ( integer $pageId ) : boolean |
Delete a page from the database, along with its revision history. |
|
deleteRedirect ( integer $redirectID ) : boolean |
Delete a redirect. |
|
getCabinForDirectory ( integer $directoryId ) : string |
Get the cabin assigned to a particular directory |
|
getCustomDirChildren ( string $cabin, integer $directoryId, integer $selected, integer $skip, integer $depth ) : array |
Recursively grab the children of the custom directory tree |
|
getCustomDirTree ( array $cabins, integer $selected, integer $skip ) : array |
Get a custom directory tree |
|
getDirInfo ( string $cabin, string $parent = '', string $name = '' ) : array |
Get information about only this directory |
|
getDirectoryPieces ( integer $directoryID ) : array |
Get all of the parents for a given directory, as an array |
|
getHistory ( integer $pageId ) : array |
Get all of a page's revision history |
|
getLatestDraft ( integer $pageId ) : array |
Get the latest version of a custom page |
|
getLatestVersionId ( integer $pageId ) : integer |
Get the latest published version ID of a custom page |
|
getNextVersionUniqueId ( integer $pageId, integer $currentVersionId ) : string |
Get the next version's unique ID |
|
getPageInfo ( string $cabin, string $path = '', string $page ) : array |
Get information about only the page |
|
getPageVersionByUniqueId ( string $uniqueId ) : array |
Get the information about a particular page version, given a unique ID |
|
getPathByPageId ( integer $pageId, string $cabin = '' ) : array |
Get path information by a page ID |
|
getPrevVersionUniqueId ( integer $pageId, integer $currentVersionId ) : string |
Get the next version's unique ID |
|
getRedirect ( string $cabin, integer $redirectID ) : array |
Get the redirects for this particular cabin. |
|
getRedirectsForCabin ( string $cabin ) : array |
Get the redirects for this particular cabin. |
|
listCustomPages ( string $dir = '', string $cabin = CABIN_NAME ) : array |
List all of the custom pages contained within a given cabin and directory |
|
listCustomPagesByDirectoryID ( integer $dir ) : array |
List all of the custom pages contained within a given directory ID |
|
listSubDirectories ( string $dir = '', string $cabin = CABIN_NAME ) : array |
List all of the subdirectories for a given cabin and directory |
|
listSubDirectoriesByDirectoryID ( integer $dir ) : array |
List all of the subdirectories contained within a given directory ID |
|
moveDir ( integer $dirID, string $url = '', integer $parent, string $cabin = '' ) : boolean |
Move/rename a directory |
|
movePage ( integer $pageId, string $url = '', integer $destinationDir ) : boolean |
Move a page to a new directory |
|
movePagesToDir ( integer $parent, integer $destinationDir, boolean $createRedirect = false, string $oldCabin = '', string $newCabin = '', array $pieces = [] ) : boolean |
|
|
numCustomPages ( null $published = null ) : integer |
Get the number of custom pages. |
|
recursiveDelete ( integer $directoryID ) : boolean |
Delete everything within a given directory |
|
updatePage ( integer $pageId, array $post = [], boolean $publish = false, boolean | null $raw = null, boolean $cache = false ) : boolean |
Create a new page (and initial page version) |
|
updateRedirect ( integer $redirectID, array $post ) : boolean |
Save changes to a custom redirect |
|