Dotclear


Ignore:
Timestamp:
02/15/13 08:35:19 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
twig
Children:
1106:a4487f3ca4b4, 1147:2e5cb79e4782
Message:

Twig 1.12.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/libs/twig/Filter.php

    r991 r1101  
    1313 * Represents a template filter. 
    1414 * 
     15 * Use Twig_SimpleFilter instead. 
     16 * 
    1517 * @package    twig 
    1618 * @author     Fabien Potencier <fabien@symfony.com> 
     19 * @deprecated since 1.12 (to be removed in 2.0) 
    1720 */ 
    18 abstract class Twig_Filter implements Twig_FilterInterface 
     21abstract class Twig_Filter implements Twig_FilterInterface, Twig_FilterCallableInterface 
    1922{ 
    2023    protected $options; 
     
    2831            'pre_escape'        => null, 
    2932            'preserves_safety'  => null, 
     33            'callable'          => null, 
    3034        ), $options); 
    3135    } 
     
    7377        return $this->options['pre_escape']; 
    7478    } 
     79 
     80    public function getCallable() 
     81    { 
     82        return $this->options['callable']; 
     83    } 
    7584} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map