Property | Type | Description | |
---|---|---|---|
$cabin | string |
Method | Description | |
---|---|---|
getDirectoryId ( string $dir, integer $parent, string $cabin = '' ) : integer | Get the directory ID for a given path | |
getLatestVersion ( integer $pageId ) : array | Get the latest version of a custom page | |
getPage ( string $file, integer $directoryId, string $cabin = '' ) : array | Get information about a custom page. | |
getPageById ( integer $pageId ) : array | Get information about a custom page. | |
getParentDir ( array $dirs = [], string $cabin = '' ) : integer | Get the parent directory | |
getParentDirFromStr ( string $dir, string $cabin = '' ) : integer | Get the parent directory | |
getPathFromDirectoryId ( integer $directoryId, string $cabin = '', array $idsEncountered = [] ) : array | Get all of the parent directories' URL components | |
serveRedirect ( string $uri ) : boolean | If a redirect exists at this path, serve it. | |
setCabin ( string $cabin ) : self | Set the cabin for this gear |
public getLatestVersion ( integer $pageId ) : array | ||
$pageId | integer | |
return | array |
public getPageById ( integer $pageId ) : array | ||
$pageId | integer | |
return | array |
public serveRedirect ( string $uri ) : boolean | ||
$uri | string | |
return | boolean |