PHP Класс Airship\Engine\Landing

For MVC developers, this is analogous to a Controller
Наследование: use trait CommonBolt, use trait CacheBolt, use trait LogBolt, use trait SecurityBolt
Показать файл Открыть проект

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

Свойство Тип Описание
$_cache array
$airship_cabin_prefix string
$airship_config array
$airship_csrf CSRF
$airship_databases Airship\Engine\Contract\DBInterface[][]
$airship_http_method string
$airship_lens_object Lens
$airship_lens_override array

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

Метод Описание
airshipEjectFromCockpit ( Lens $lens, array $databases = [], string $urlPrefix = '' ) Dependency injection aside from the controller. Allows you to write your own constructors.
airshipLand ( ) Overloadable; invoked after airshipEjectFromCockpit()
config ( string $search = '' ) : mixed Get configuration settings
resetBaseTemplate ( ) : mixed
setBaseTemplate ( string $name ) : mixed

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

Метод Описание
addLensFilter ( string $name, callable $func ) Add a filter to the lens
addLensFunction ( string $name, callable $func ) Add a function to the lens
airshipChooseDB ( ) : Airship\Engine\Contract\DBInterface Choose a database. We don't do anything fancy, but a Gear might decide to do something different.
blueprint ( string $name, $cArgs ) : Blueprint Grab a blueprint
getLensAsText ( string $name, $cArgs ) : string Render a Lens as text, return a string
getNamespace ( ) : string Get the name of the current namespace
lens ( string $name, $cArgs ) : void Render a template and terminate execution. Do not cache.
lensRender ( string $name, $cArgs ) : string Render a lens, return its contents, don't exit.
overrideLens ( string $oldLens, string $newLens ) Override a lens with a different lens. (Meant for Gadgets.)
post ( InputFilterContainer $filterContainer = null, boolean $ignoreCSRFToken = false ) : array | boolean Grab post data, but only if the CSRF token is valid
setActiveMotif ( string $name ) : boolean
stasis ( string $name, variadic $cArgs ) : boolean Render lens content, cache it, then display it.
storeLensVar ( string $name, mixed $value ) : Lens Grab a lens

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

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

Add a filter to the lens
protected addLensFilter ( string $name, callable $func )
$name string
$func callable

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

Add a function to the lens
protected addLensFunction ( string $name, callable $func )
$name string
$func callable

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

Choose a database. We don't do anything fancy, but a Gear might decide to do something different.
protected airshipChooseDB ( ) : Airship\Engine\Contract\DBInterface
Результат Airship\Engine\Contract\DBInterface

airshipEjectFromCockpit() закрытый публичный метод

This is final so nobody changes it in a Gear. Please don't mess with this component.
final public airshipEjectFromCockpit ( Lens $lens, array $databases = [], string $urlPrefix = '' )
$lens Lens
$databases array
$urlPrefix string

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

This is typically what you want to overload in place of a constructor.
public airshipLand ( )

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

Grab a blueprint
protected blueprint ( string $name, $cArgs ) : Blueprint
$name string
$cArgs Constructor arguments
Результат Blueprint

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

Get configuration settings
public config ( string $search = '' ) : mixed
$search string
Результат mixed

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

Render a Lens as text, return a string
protected getLensAsText ( string $name, $cArgs ) : string
$name string
$cArgs Constructor arguments
Результат string

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

Get the name of the current namespace
protected getNamespace ( ) : string
Результат string

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

Render a template and terminate execution. Do not cache.
protected lens ( string $name, $cArgs ) : void
$name string
$cArgs Constructor arguments
Результат void

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

Render a lens, return its contents, don't exit.
protected lensRender ( string $name, $cArgs ) : string
$name string
$cArgs Constructor arguments
Результат string

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

Override a lens with a different lens. (Meant for Gadgets.)
protected overrideLens ( string $oldLens, string $newLens )
$oldLens string
$newLens string

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

Grab post data, but only if the CSRF token is valid
protected post ( InputFilterContainer $filterContainer = null, boolean $ignoreCSRFToken = false ) : array | boolean
$filterContainer InputFilterContainer - Type filter for POST data
$ignoreCSRFToken boolean - Don't validate CSRF tokens
Результат array | boolean

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

public resetBaseTemplate ( ) : mixed
Результат mixed

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

protected setActiveMotif ( string $name ) : boolean
$name string
Результат boolean

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

public setBaseTemplate ( string $name ) : mixed
$name string
Результат mixed

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

Render lens content, cache it, then display it.
protected stasis ( string $name, variadic $cArgs ) : boolean
$name string
$cArgs variadic Constructor arguments
Результат boolean

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

Grab a lens
protected storeLensVar ( string $name, mixed $value ) : Lens
$name string
$value mixed
Результат Lens

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

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

protected array $_cache
Результат array

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

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

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

protected array $airship_config
Результат array

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

protected CSRF $airship_csrf
Результат CSRF

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

protected DBInterface[][],Airship\Engine\Contract $airship_databases
Результат Airship\Engine\Contract\DBInterface[][]

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

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

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

protected Lens,Airship\Engine $airship_lens_object
Результат Lens

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

protected array $airship_lens_override
Результат array