PHP 클래스 Airship\Engine\Gadgets

This abstract class simply contains some methods useful for Gadget development
파일 보기 프로젝트 열기: paragonie/airship 1 사용 예제들

공개 메소드들

메소드 설명
injectRoutes ( array $injected = [] ) Inject one or more routes to the current Cabin's autopilot route list
loadCargo ( string $name, string $source ) Store cargo to be rendered into a template
loadMigration ( string $key ) : Airship\Engine\Security\Migration\MigrationInterface Find a migration class
registerMigration ( string $key, Airship\Engine\Security\Migration\MigrationInterface $migration ) Register a migration class
setBaseTemplate ( string $path ) Set the base template
unloadCargo ( string $name, integer $offset ) : array Render the contents of a cargo (placeholder)
unloadNextCargo ( string $name ) : array Render the contents of the next cargo (placeholder)

메소드 상세

injectRoutes() 공개 정적인 메소드

Inject one or more routes to the current Cabin's autopilot route list
public static injectRoutes ( array $injected = [] )
$injected array

loadCargo() 공개 정적인 메소드

Store cargo to be rendered into a template
public static loadCargo ( string $name, string $source )
$name string
$source string File path (can be within phar://)

loadMigration() 공개 정적인 메소드

Find a migration class
public static loadMigration ( string $key ) : Airship\Engine\Security\Migration\MigrationInterface
$key string
리턴 Airship\Engine\Security\Migration\MigrationInterface

registerMigration() 공개 정적인 메소드

Register a migration class
public static registerMigration ( string $key, Airship\Engine\Security\Migration\MigrationInterface $migration )
$key string
$migration Airship\Engine\Security\Migration\MigrationInterface

setBaseTemplate() 공개 정적인 메소드

Set the base template
public static setBaseTemplate ( string $path )
$path string

unloadCargo() 공개 정적인 메소드

Render the contents of a cargo (placeholder)
public static unloadCargo ( string $name, integer $offset ) : array
$name string
$offset integer
리턴 array

unloadNextCargo() 공개 정적인 메소드

Render the contents of the next cargo (placeholder)
public static unloadNextCargo ( string $name ) : array
$name string
리턴 array