From 1b136555d279bf2cfb28f5661225c010426754f5 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 5 Oct 2011 15:22:53 +1100 Subject: transition to Twig --- inc/contrib/Twig/Node/Expression/Binary/NotIn.php | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 inc/contrib/Twig/Node/Expression/Binary/NotIn.php (limited to 'inc/contrib/Twig/Node/Expression/Binary/NotIn.php') diff --git a/inc/contrib/Twig/Node/Expression/Binary/NotIn.php b/inc/contrib/Twig/Node/Expression/Binary/NotIn.php new file mode 100644 index 00000000..f347b7b6 --- /dev/null +++ b/inc/contrib/Twig/Node/Expression/Binary/NotIn.php @@ -0,0 +1,33 @@ +raw('!twig_in_filter(') + ->subcompile($this->getNode('left')) + ->raw(', ') + ->subcompile($this->getNode('right')) + ->raw(')') + ; + } + + public function operator(Twig_Compiler $compiler) + { + return $compiler->raw('not in'); + } +} -- cgit v1.3