PHP Class Kohana_Twig_Trans_Node, kohana-twig

Based off of the core twig code for the trans tag, but modified to use Kohana's __() function.
Inheritance: extends Twig_Node
Afficher le fichier Open project: jonathangeiger/kohana-twig

Méthodes publiques

Méthode Description
compile ( Twig_Compiler $compiler ) Compiles the node to PHP.

Méthodes protégées

Méthode Description
compileString ( Twig_NodeInterface $body ) : array Parses out the body to extract vars to pass to the translation function.

Method Details

compile() public méthode

Compiles the node to PHP.
public compile ( Twig_Compiler $compiler )
$compiler Twig_Compiler

compileString() protected méthode

Parses out the body to extract vars to pass to the translation function.
protected compileString ( Twig_NodeInterface $body ) : array
$body Twig_NodeInterface
Résultat array