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
파일 보기 프로젝트 열기: paragonie/airship

보호된 프로퍼티들

프로퍼티 타입 설명
$_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