Documentation

Trans extends StatementNode
in package

Table of Contents

Properties

$transContext  : ExpressionNode|null
$txtId  : ExpressionNode|null

Methods

create()  : self
Tag parsing function, called when {trans} is found.
getIterator()  : Generator
Provides access to child nodes for Latte's compiler passes.
print()  : string
Generates the PHP code that will be executed when the template is rendered.

Properties

$transContext

public ExpressionNode|null $transContext = null

$txtId

public ExpressionNode|null $txtId = null

Methods

create()

Tag parsing function, called when {trans} is found.

public static create(Tag $tag) : self
Parameters
$tag : Tag
Return values
self

getIterator()

Provides access to child nodes for Latte's compiler passes.

public & getIterator() : Generator
Return values
Generator

print()

Generates the PHP code that will be executed when the template is rendered.

public print(PrintContext $printContext) : string
Parameters
$printContext : PrintContext
Return values
string

        
On this page

Search results