a-blog cms PHP API Reference

Acms
in package
implements Template

Table of Contents

Interfaces

Template

Properties

$cache  : Cache
$engine  : Engine
$noBuildIF  : bool
$postData  : Field_Validation
$resolver  : Resolver
$template  : string

Methods

__construct()  : void
Constructor
getTemplate()  : string
展開されたテンプレートを取得
load()  : void
パスからテンプレートをロード
loadFromString()  : void
文字列からテンプレートをロード
render()  : string
レンダリング
setNoBuildIF()  : void
setPostData()  : void
getTemplateCacheKey()  : false|string
テンプレートキャッシュを持っているか判断し、キャッシュがあればキャッシュキーを返す

Properties

$noBuildIF

protected bool $noBuildIF = false

$template

protected string $template = ''

Methods

getTemplate()

展開されたテンプレートを取得

public getTemplate() : string
Return values
string

load()

パスからテンプレートをロード

public load(string $path, string $theme, int $bid) : void
Parameters
$path : string
$theme : string
$bid : int

loadFromString()

文字列からテンプレートをロード

public loadFromString(string $txt, string $path, string $theme, int $bid[, bool $withTwig = false ]) : void
Parameters
$txt : string
$path : string
$theme : string
$bid : int
$withTwig : bool = false

render()

レンダリング

public render() : string
Return values
string

setNoBuildIF()

public setNoBuildIF(bool $noBuildIF) : void
Parameters
$noBuildIF : bool

getTemplateCacheKey()

テンプレートキャッシュを持っているか判断し、キャッシュがあればキャッシュキーを返す

protected getTemplateCacheKey(string $path, string $theme) : false|string
Parameters
$path : string
$theme : string
Tags
throws
Exception
Return values
false|string

        
On this page

Search results