parent::__construct(array('body' => $body), array('value' => $value), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->subcompile($this->body);
parent::__construct(array('body' => $body), array('name' => $name), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct(array(), array('name' => $name), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct(array('expr' => $expr), array(), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->addDebugInfo($this);
parent::__construct($elements, array(), $lineno);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->raw('array(');
class Twig_Node_Expression_AssignName extends Twig_Node_Expression_Name
{
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->raw(sprintf('$context[\'%s\']', $this['name']));
parent::__construct(array('left' => $left, 'right' => $right), array(), $lineno);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
*/
class Twig_Node_Expression_Binary_FloorDiv extends Twig_Node_Expression_Binary
{
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->raw('floor(');
parent::__construct(array('key_target' => $keyTarget, 'value_target' => $valueTarget, 'seq' => $seq, 'body' => $body, 'else' => $else), array('with_loop' => $withLoop), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct(array('tests' => $tests, 'else' => $else), array(), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->addDebugInfo($this);
parent::__construct(array('expr' => $expr, 'var' => $var), array(), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct(array('expr' => $expr, 'variables' => $variables), array(), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->addDebugInfo($this);
parent::__construct(array('body' => $body, 'arguments' => $arguments), array('name' => $name), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$arguments = array();
parent::__construct(array('parent' => $parent, 'body' => $body, 'blocks' => $blocks, 'macros' => $macros), array('filename' => $filename), 1);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$this->compileTemplate($compiler);
parent::__construct(array(), array('name' => $name), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct(array('expr' => $expr), array(), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct(array('body' => $body), array(), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct($node->expr, $node->getLine(), $node->getNodeTag());
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct(array('names' => $names, 'values' => $values), array('capture' => $capture), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->addDebugInfo($this);
parent::__construct(array(), array('data' => $data), $lineno);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler
parent::__construct(array('count' => $count, 'body' => $body, 'plural' => $plural), array(), $lineno, $tag);
}
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler)
{
$compiler->addDebugInfo($this);
*/
interface Twig_NodeInterface
{
+ /**
+ * Compiles the node to PHP.
+ *
+ * @param Twig_Compiler A Twig_Compiler instance
+ */
public function compile($compiler);
public function getLine();