PHP Class Airship\Cabin\Hull\Landing\CustomPages

Custom page handler.
Inheritance: extends LandingGear
Afficher le fichier Open project: paragonie/airship

Protected Properties

Свойство Type Description
$cabin string
$pages Airship\Cabin\Hull\Blueprint\CustomPages

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

airshipLand() public méthode

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

render() protected méthode

Render a custom page
protected render ( array $latest ) : string
$latest array
Résultat string

routeNotFound() public méthode

This interrupts requests if all else fails.
public routeNotFound ( $args ) : void
$args
Résultat void

serveCustomPage() protected méthode

Public API entry point for serving a custom page
protected serveCustomPage ( string $file, array $dirs = [] ) : boolean
$file string
$dirs array
Résultat boolean

serveFile() protected méthode

Serve a file
protected serveFile ( string $file, integer $directoryId ) : boolean
$file string
$directoryId integer
Résultat boolean

serveLatestVersion() protected méthode

Server the latest version of a custom page.
protected serveLatestVersion ( array $page ) : boolean
$page array
Résultat boolean

Property Details

$cabin protected_oe property

protected string $cabin
Résultat string

$pages protected_oe property

protected CustomPages,Airship\Cabin\Hull\Blueprint $pages
Résultat Airship\Cabin\Hull\Blueprint\CustomPages