summaryrefslogtreecommitdiff
path: root/inc/contrib/Twig/Node/Expression/Binary
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-09 20:52:26 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-09 20:52:26 +1000
commit874b8cbf002e9d8bf0ff39671e1501165016320a (patch)
tree1428acec23fef6c607e10fd355d88af31c2029ed /inc/contrib/Twig/Node/Expression/Binary
parent69c9a9dd452299e0e8f7335966a1d0b4036df583 (diff)
inc/contrib -> inc/lib
Diffstat (limited to 'inc/contrib/Twig/Node/Expression/Binary')
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Add.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/And.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/BitwiseAnd.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/BitwiseOr.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/BitwiseXor.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Concat.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Div.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Equal.php17
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/FloorDiv.php29
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Greater.php17
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/GreaterEqual.php17
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/In.php33
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Less.php17
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/LessEqual.php17
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Mod.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Mul.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/NotEqual.php17
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/NotIn.php33
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Or.php18
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Power.php33
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Range.php33
-rw-r--r--inc/contrib/Twig/Node/Expression/Binary/Sub.php18
22 files changed, 0 insertions, 461 deletions
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Add.php b/inc/contrib/Twig/Node/Expression/Binary/Add.php
deleted file mode 100644
index 0ef8e117..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Add.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Add extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('+');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/And.php b/inc/contrib/Twig/Node/Expression/Binary/And.php
deleted file mode 100644
index d5752ebb..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/And.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_And extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('&&');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/BitwiseAnd.php b/inc/contrib/Twig/Node/Expression/Binary/BitwiseAnd.php
deleted file mode 100644
index 9a46d845..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/BitwiseAnd.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_BitwiseAnd extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('&');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/BitwiseOr.php b/inc/contrib/Twig/Node/Expression/Binary/BitwiseOr.php
deleted file mode 100644
index 058a20bf..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/BitwiseOr.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_BitwiseOr extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('|');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/BitwiseXor.php b/inc/contrib/Twig/Node/Expression/Binary/BitwiseXor.php
deleted file mode 100644
index f4da73d4..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/BitwiseXor.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_BitwiseXor extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('^');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Concat.php b/inc/contrib/Twig/Node/Expression/Binary/Concat.php
deleted file mode 100644
index f9a64627..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Concat.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Concat extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('.');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Div.php b/inc/contrib/Twig/Node/Expression/Binary/Div.php
deleted file mode 100644
index e0797a61..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Div.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Div extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('/');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Equal.php b/inc/contrib/Twig/Node/Expression/Binary/Equal.php
deleted file mode 100644
index 7b1236d0..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Equal.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Equal extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('==');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/FloorDiv.php b/inc/contrib/Twig/Node/Expression/Binary/FloorDiv.php
deleted file mode 100644
index e86b1ea0..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/FloorDiv.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-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(Twig_Compiler $compiler)
- {
- $compiler->raw('floor(');
- parent::compile($compiler);
- $compiler->raw(')');
- }
-
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('/');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Greater.php b/inc/contrib/Twig/Node/Expression/Binary/Greater.php
deleted file mode 100644
index a110bd92..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Greater.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Greater extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('>');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/GreaterEqual.php b/inc/contrib/Twig/Node/Expression/Binary/GreaterEqual.php
deleted file mode 100644
index 3754fed2..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/GreaterEqual.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_GreaterEqual extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('>=');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/In.php b/inc/contrib/Twig/Node/Expression/Binary/In.php
deleted file mode 100644
index 788f9377..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/In.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_In extends Twig_Node_Expression_Binary
-{
- /**
- * Compiles the node to PHP.
- *
- * @param Twig_Compiler A Twig_Compiler instance
- */
- public function compile(Twig_Compiler $compiler)
- {
- $compiler
- ->raw('twig_in_filter(')
- ->subcompile($this->getNode('left'))
- ->raw(', ')
- ->subcompile($this->getNode('right'))
- ->raw(')')
- ;
- }
-
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('in');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Less.php b/inc/contrib/Twig/Node/Expression/Binary/Less.php
deleted file mode 100644
index 45fd3004..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Less.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Less extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('<');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/LessEqual.php b/inc/contrib/Twig/Node/Expression/Binary/LessEqual.php
deleted file mode 100644
index e38e257c..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/LessEqual.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_LessEqual extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('<=');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Mod.php b/inc/contrib/Twig/Node/Expression/Binary/Mod.php
deleted file mode 100644
index 9924114f..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Mod.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Mod extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('%');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Mul.php b/inc/contrib/Twig/Node/Expression/Binary/Mul.php
deleted file mode 100644
index c91529ca..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Mul.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Mul extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('*');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/NotEqual.php b/inc/contrib/Twig/Node/Expression/Binary/NotEqual.php
deleted file mode 100644
index 26867ba2..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/NotEqual.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_NotEqual extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('!=');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/NotIn.php b/inc/contrib/Twig/Node/Expression/Binary/NotIn.php
deleted file mode 100644
index f347b7b6..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/NotIn.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_NotIn extends Twig_Node_Expression_Binary
-{
- /**
- * Compiles the node to PHP.
- *
- * @param Twig_Compiler A Twig_Compiler instance
- */
- public function compile(Twig_Compiler $compiler)
- {
- $compiler
- ->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');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Or.php b/inc/contrib/Twig/Node/Expression/Binary/Or.php
deleted file mode 100644
index adba49c6..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Or.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Or extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('||');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Power.php b/inc/contrib/Twig/Node/Expression/Binary/Power.php
deleted file mode 100644
index b2c59040..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Power.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Power extends Twig_Node_Expression_Binary
-{
- /**
- * Compiles the node to PHP.
- *
- * @param Twig_Compiler A Twig_Compiler instance
- */
- public function compile(Twig_Compiler $compiler)
- {
- $compiler
- ->raw('pow(')
- ->subcompile($this->getNode('left'))
- ->raw(', ')
- ->subcompile($this->getNode('right'))
- ->raw(')')
- ;
- }
-
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('**');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Range.php b/inc/contrib/Twig/Node/Expression/Binary/Range.php
deleted file mode 100644
index bea4f2a6..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Range.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2010 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Range extends Twig_Node_Expression_Binary
-{
- /**
- * Compiles the node to PHP.
- *
- * @param Twig_Compiler A Twig_Compiler instance
- */
- public function compile(Twig_Compiler $compiler)
- {
- $compiler
- ->raw('range(')
- ->subcompile($this->getNode('left'))
- ->raw(', ')
- ->subcompile($this->getNode('right'))
- ->raw(')')
- ;
- }
-
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('..');
- }
-}
diff --git a/inc/contrib/Twig/Node/Expression/Binary/Sub.php b/inc/contrib/Twig/Node/Expression/Binary/Sub.php
deleted file mode 100644
index d4463991..00000000
--- a/inc/contrib/Twig/Node/Expression/Binary/Sub.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-/*
- * This file is part of Twig.
- *
- * (c) 2009 Fabien Potencier
- * (c) 2009 Armin Ronacher
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-class Twig_Node_Expression_Binary_Sub extends Twig_Node_Expression_Binary
-{
- public function operator(Twig_Compiler $compiler)
- {
- return $compiler->raw('-');
- }
-}