PHP Class Latte\Runtime\Template

Inheritance: use trait Latte\Strict
Afficher le fichier Open project: nette/latte Class Usage Examples

Méthodes publiques

Свойство Type Description
$global global accumulators for intermediate results

Protected Properties

Свойство Type Description
$blockQueue
$blockTypes
$blocks [name => method] @internal
$contentType string @internal
$filters FilterExecutor
$params array @internal
$parentName string | null | FALSE @internal

Méthodes publiques

Méthode Description
__call ( $name, $args )
__construct ( Engine $engine, array $params, FilterExecutor $filters, array $providers, $name )
__get ( $name )
__isset ( $name )
__set ( $name, $value )
__unset ( $name )
capture ( callable $function ) : string Captures output to string.
getContentType ( ) : string
getEngine ( ) : Engine
getName ( ) : string
getParameter ( $name ) : mixed Returns parameter.
getParameters ( ) : array Returns array of all parameters.
getParentName ( ) : string | null
getReferenceType ( ) : string | null
getReferringTemplate ( ) : Template | null
prepare ( ) : void
render ( ) : void Renders template.
setParameters ( array $params )

Méthodes protégées

Méthode Description
checkBlockContentType ( $current, $name ) : void
createTemplate ( $name, array $params, $referenceType ) : Template Renders template.
renderBlock ( $name, array $params, $mod = NULL ) : void Renders block.
renderBlockParent ( $name, array $params ) : void Renders parent block.
renderToContentType ( $mod ) : void

Method Details

__call() public méthode

Deprecation:
public __call ( $name, $args )

__construct() public méthode

public __construct ( Engine $engine, array $params, FilterExecutor $filters, array $providers, $name )
$engine Latte\Engine
$params array
$filters FilterExecutor
$providers array

__get() public méthode

Deprecation:
public __get ( $name )

__isset() public méthode

Deprecation:
public __isset ( $name )

__set() public méthode

Deprecation:
public __set ( $name, $value )

__unset() public méthode

Deprecation:
public __unset ( $name )

capture() public méthode

Captures output to string.
public capture ( callable $function ) : string
$function callable
Résultat string

checkBlockContentType() protected méthode

protected checkBlockContentType ( $current, $name ) : void
Résultat void

createTemplate() protected méthode

Renders template.
protected createTemplate ( $name, array $params, $referenceType ) : Template
$params array
Résultat Template

getContentType() public méthode

public getContentType ( ) : string
Résultat string

getEngine() public méthode

public getEngine ( ) : Engine
Résultat Latte\Engine

getName() public méthode

public getName ( ) : string
Résultat string

getParameter() public méthode

Returns parameter.
public getParameter ( $name ) : mixed
Résultat mixed

getParameters() public méthode

Returns array of all parameters.
public getParameters ( ) : array
Résultat array

getParentName() public méthode

public getParentName ( ) : string | null
Résultat string | null

getReferenceType() public méthode

public getReferenceType ( ) : string | null
Résultat string | null

getReferringTemplate() public méthode

public getReferringTemplate ( ) : Template | null
Résultat Template | null

prepare() public méthode

public prepare ( ) : void
Résultat void

render() public méthode

Renders template.
public render ( ) : void
Résultat void

renderBlock() protected méthode

Renders block.
protected renderBlock ( $name, array $params, $mod = NULL ) : void
$params array
Résultat void

renderBlockParent() protected méthode

Renders parent block.
protected renderBlockParent ( $name, array $params ) : void
$params array
Résultat void

renderToContentType() protected méthode

protected renderToContentType ( $mod ) : void
Résultat void

setParameters() public méthode

Deprecation:
public setParameters ( array $params )
$params array

Property Details

$blockQueue protected_oe property

protected $blockQueue

$blockTypes protected_oe property

protected $blockTypes

$blocks protected_oe property

[name => method] @internal
protected $blocks

$contentType protected_oe property

@internal
protected string $contentType
Résultat string

$filters protected_oe property

protected FilterExecutor,Latte\Runtime $filters
Résultat FilterExecutor

$global public_oe property

global accumulators for intermediate results
public $global

$params protected_oe property

@internal
protected array $params
Résultat array

$parentName protected_oe property

@internal
protected string|NULL|FALSE $parentName
Résultat string | null | FALSE