]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/3rdparty/Twig/Node/SetTemp.php
4 * This file is part of Twig.
6 * (c) 2011 Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 class Twig_Node_SetTemp
extends Twig_Node
14 public function __construct($name, $lineno)
16 parent
::__construct(array(), array('name' => $name), $lineno);
19 public function compile(Twig_Compiler
$compiler)
21 $name = $this->getAttribute('name');
24 ->write('if (isset($context[')
28 ->raw('_
= $context[')
30 ->raw(']; } else { $_')
32 ->raw("_ = null; }\n")