PHP Class Latte\Runtime\Template

Inheritance: use trait Latte\Strict
Datei anzeigen Open project: nette/latte Class Usage Examples

Public Properties

Property Type Description
$global global accumulators for intermediate results

Protected Properties

Property Type Description
$blockQueue
$blockTypes
$blocks [name => method] @internal
$contentType string @internal
$filters FilterExecutor
$params array @internal
$parentName string | null | FALSE @internal

Public Methods

Method 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 )

Protected Methods

Method 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 method

Deprecation:
public __call ( $name, $args )

__construct() public method

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

__get() public method

Deprecation:
public __get ( $name )

__isset() public method

Deprecation:
public __isset ( $name )

__set() public method

Deprecation:
public __set ( $name, $value )

__unset() public method

Deprecation:
public __unset ( $name )

capture() public method

Captures output to string.
public capture ( callable $function ) : string
$function callable
return string

checkBlockContentType() protected method

protected checkBlockContentType ( $current, $name ) : void
return void

createTemplate() protected method

Renders template.
protected createTemplate ( $name, array $params, $referenceType ) : Template
$params array
return Template

getContentType() public method

public getContentType ( ) : string
return string

getEngine() public method

public getEngine ( ) : Engine
return Latte\Engine

getName() public method

public getName ( ) : string
return string

getParameter() public method

Returns parameter.
public getParameter ( $name ) : mixed
return mixed

getParameters() public method

Returns array of all parameters.
public getParameters ( ) : array
return array

getParentName() public method

public getParentName ( ) : string | null
return string | null

getReferenceType() public method

public getReferenceType ( ) : string | null
return string | null

getReferringTemplate() public method

public getReferringTemplate ( ) : Template | null
return Template | null

prepare() public method

public prepare ( ) : void
return void

render() public method

Renders template.
public render ( ) : void
return void

renderBlock() protected method

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

renderBlockParent() protected method

Renders parent block.
protected renderBlockParent ( $name, array $params ) : void
$params array
return void

renderToContentType() protected method

protected renderToContentType ( $mod ) : void
return void

setParameters() public method

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
return string

$filters protected_oe property

protected FilterExecutor,Latte\Runtime $filters
return FilterExecutor

$global public_oe property

global accumulators for intermediate results
public $global

$params protected_oe property

@internal
protected array $params
return array

$parentName protected_oe property

@internal
protected string|NULL|FALSE $parentName
return string | null | FALSE