From 4f5b44bd3bd490309eb2ba7b44df4769816ba729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 3 Aug 2013 19:26:54 +0200 Subject: twig implementation --- inc/3rdparty/Twig/Filter/Function.php | 37 --------------------------------- inc/3rdparty/Twig/Filter/Method.php | 39 ----------------------------------- inc/3rdparty/Twig/Filter/Node.php | 39 ----------------------------------- 3 files changed, 115 deletions(-) delete mode 100644 inc/3rdparty/Twig/Filter/Function.php delete mode 100644 inc/3rdparty/Twig/Filter/Method.php delete mode 100644 inc/3rdparty/Twig/Filter/Node.php (limited to 'inc/3rdparty/Twig/Filter') diff --git a/inc/3rdparty/Twig/Filter/Function.php b/inc/3rdparty/Twig/Filter/Function.php deleted file mode 100644 index ad374a55..00000000 --- a/inc/3rdparty/Twig/Filter/Function.php +++ /dev/null @@ -1,37 +0,0 @@ - - * @deprecated since 1.12 (to be removed in 2.0) - */ -class Twig_Filter_Function extends Twig_Filter -{ - protected $function; - - public function __construct($function, array $options = array()) - { - $options['callable'] = $function; - - parent::__construct($options); - - $this->function = $function; - } - - public function compile() - { - return $this->function; - } -} diff --git a/inc/3rdparty/Twig/Filter/Method.php b/inc/3rdparty/Twig/Filter/Method.php deleted file mode 100644 index 63c8c3be..00000000 --- a/inc/3rdparty/Twig/Filter/Method.php +++ /dev/null @@ -1,39 +0,0 @@ - - * @deprecated since 1.12 (to be removed in 2.0) - */ -class Twig_Filter_Method extends Twig_Filter -{ - protected $extension; - protected $method; - - public function __construct(Twig_ExtensionInterface $extension, $method, array $options = array()) - { - $options['callable'] = array($extension, $method); - - parent::__construct($options); - - $this->extension = $extension; - $this->method = $method; - } - - public function compile() - { - return sprintf('$this->env->getExtension(\'%s\')->%s', $this->extension->getName(), $this->method); - } -} diff --git a/inc/3rdparty/Twig/Filter/Node.php b/inc/3rdparty/Twig/Filter/Node.php deleted file mode 100644 index 8744c5e0..00000000 --- a/inc/3rdparty/Twig/Filter/Node.php +++ /dev/null @@ -1,39 +0,0 @@ - - * @deprecated since 1.12 (to be removed in 2.0) - */ -class Twig_Filter_Node extends Twig_Filter -{ - protected $class; - - public function __construct($class, array $options = array()) - { - parent::__construct($options); - - $this->class = $class; - } - - public function getClass() - { - return $this->class; - } - - public function compile() - { - } -} -- cgit v1.2.3