PHP Класс Airship\Cabin\Hull\Blueprint\CustomPages

Custom web pages
Наследование: extends BlueprintGear
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$cabin string

Открытые методы

Метод Описание
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

Описание методов

getDirectoryId() публичный метод

Get the directory ID for a given path
public getDirectoryId ( string $dir, integer $parent, string $cabin = '' ) : integer
$dir string
$parent integer
$cabin string
Результат integer

getLatestVersion() публичный метод

Get the latest version of a custom page
public getLatestVersion ( integer $pageId ) : array
$pageId integer
Результат array

getPage() публичный метод

Get information about a custom page.
public getPage ( string $file, integer $directoryId, string $cabin = '' ) : array
$file string
$directoryId integer
$cabin string
Результат array

getPageById() публичный метод

Get information about a custom page.
public getPageById ( integer $pageId ) : array
$pageId integer
Результат array

getParentDir() публичный метод

Get the parent directory
public getParentDir ( array $dirs = [], string $cabin = '' ) : integer
$dirs array
$cabin string
Результат integer

getParentDirFromStr() публичный метод

Get the parent directory
public getParentDirFromStr ( string $dir, string $cabin = '' ) : integer
$dir string
$cabin string
Результат integer

getPathFromDirectoryId() публичный метод

Get all of the parent directories' URL components
public getPathFromDirectoryId ( integer $directoryId, string $cabin = '', array $idsEncountered = [] ) : array
$directoryId integer
$cabin string
$idsEncountered array Prevent infinite loops
Результат array

serveRedirect() публичный метод

If a redirect exists at this path, serve it.
public serveRedirect ( string $uri ) : boolean
$uri string
Результат boolean

setCabin() публичный метод

Set the cabin for this gear
public setCabin ( string $cabin ) : self
$cabin string
Результат self

Описание свойств

$cabin защищенное свойство

protected string $cabin
Результат string