View
extends Facade
in package
Table of Contents
Properties
Methods
- __callStatic() : mixed
- add() : void
- get() : string
- getInstance() : mixed
- get service instance
- init() : ViewInterface
- render() : string
- setContainer() : void
- getServiceAlias() : string
- getServiceInstance() : mixed
- isCache() : bool
Properties
$container
protected
static Container
$container
Methods
__callStatic()
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
add()
public
static add(array<string|int, string>|string|null $blocks[, array<string|int, mixed> $vars = = '[]' ]) : void
ブロックと変数を追加
Parameters
- $blocks : array<string|int, string>|string|null
- $vars : array<string|int, mixed> = = '[]'
get()
public
static get() : string
テンプレートを文字列で取得
Return values
stringgetInstance()
get service instance
public
static getInstance() : mixed
init()
public
static init(string $txt[, ACMS_Corrector $Corrector = = 'null' ]) : ViewInterface
テンプレートの初期化
Parameters
- $txt : string
- $Corrector : ACMS_Corrector = = 'null'
Return values
ViewInterfacerender()
public
static render(array<string|int, mixed>|object $vars) : string
テンプレートを組み立て文字列で取得
Parameters
- $vars : array<string|int, mixed>|object
Return values
stringsetContainer()
public
static setContainer(Container $container) : void
Parameters
- $container : Container
getServiceAlias()
protected
static getServiceAlias() : string
Return values
stringgetServiceInstance()
protected
static getServiceInstance(string $alias) : mixed
Parameters
- $alias : string
isCache()
protected
static isCache() : bool