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

Custom page handler.
Наследование: extends LandingGear
Показать файл Открыть проект

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

Свойство Тип Описание
$cabin string
$pages Airship\Cabin\Hull\Blueprint\CustomPages

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

Метод Описание
airshipLand ( ) This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
routeNotFound ( $args ) : void This interrupts requests if all else fails.

Защищенные методы

Метод Описание
render ( array $latest ) : string Render a custom page
serveCustomPage ( string $file, array $dirs = [] ) : boolean Public API entry point for serving a custom page
serveFile ( string $file, integer $directoryId ) : boolean Serve a file
serveLatestVersion ( array $page ) : boolean Server the latest version of a custom page.

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

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

This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
public airshipLand ( )

render() защищенный метод

Render a custom page
protected render ( array $latest ) : string
$latest array
Результат string

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

This interrupts requests if all else fails.
public routeNotFound ( $args ) : void
$args
Результат void

serveCustomPage() защищенный метод

Public API entry point for serving a custom page
protected serveCustomPage ( string $file, array $dirs = [] ) : boolean
$file string
$dirs array
Результат boolean

serveFile() защищенный метод

Serve a file
protected serveFile ( string $file, integer $directoryId ) : boolean
$file string
$directoryId integer
Результат boolean

serveLatestVersion() защищенный метод

Server the latest version of a custom page.
protected serveLatestVersion ( array $page ) : boolean
$page array
Результат boolean

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

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

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

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

protected CustomPages,Airship\Cabin\Hull\Blueprint $pages
Результат Airship\Cabin\Hull\Blueprint\CustomPages