PHP 클래스 Kohana_Twig_Trans_Node, kohana-twig

Based off of the core twig code for the trans tag, but modified to use Kohana's __() function.
상속: extends Twig_Node
파일 보기 프로젝트 열기: jonathangeiger/kohana-twig

공개 메소드들

메소드 설명
compile ( Twig_Compiler $compiler ) Compiles the node to PHP.

보호된 메소드들

메소드 설명
compileString ( Twig_NodeInterface $body ) : array Parses out the body to extract vars to pass to the translation function.

메소드 상세

compile() 공개 메소드

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

compileString() 보호된 메소드

Parses out the body to extract vars to pass to the translation function.
protected compileString ( Twig_NodeInterface $body ) : array
$body Twig_NodeInterface
리턴 array