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/Function.php

    r991 r1101  
    1313 * Represents a template function. 
    1414 * 
     15 * Use Twig_SimpleFunction 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_Function implements Twig_FunctionInterface 
     21abstract class Twig_Function implements Twig_FunctionInterface, Twig_FunctionCallableInterface 
    1922{ 
    2023    protected $options; 
     
    2629            'needs_environment' => false, 
    2730            'needs_context'     => false, 
     31            'callable'          => null, 
    2832        ), $options); 
    2933    } 
     
    6165        return array(); 
    6266    } 
     67 
     68    public function getCallable() 
     69    { 
     70        return $this->options['callable']; 
     71    } 
    6372} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map