class NodeTrans extends TransNode

Class NodeTrans

Methods

__construct(Node $body, Node $plural = null, AbstractExpression $count = null, Node $context = null, Node $notes = null, int $lineno, string $tag = null)

Constructor.

void
compile(Compiler $compiler)

Compiles the node to PHP.

string
getTransFunction(bool $plural, bool $hasMsgContext = false)

No description

Details

at line 37
__construct(Node $body, Node $plural = null, AbstractExpression $count = null, Node $context = null, Node $notes = null, int $lineno, string $tag = null)

Constructor.

The nodes are automatically made available as properties ($this->node). The attributes are automatically made available as array items ($this['name']).

Parameters

Node $body Body of node trans
Node $plural Node plural
AbstractExpression $count Node count
Node $context Node context
Node $notes Node notes
int $lineno The line number
string $tag The tag name associated with the Node

at line 70
void compile(Compiler $compiler)

Compiles the node to PHP.

Parameters

Compiler $compiler Node compiler

Return Value

void

at line 163
protected string getTransFunction(bool $plural, bool $hasMsgContext = false)

Parameters

bool $plural Return plural or singular function to use
bool $hasMsgContext It has message context?

Return Value

string