Represents a template function.
Use Twig_SimpleFunction instead.
@author Arnaud Le Blanc <arnaud.lb@gmail.com>
Expanded class hierarchy of Twig_FunctionInterface
All classes that implement Twig_FunctionInterface
since 1.12 (to be removed in 2.0)
interface Twig_FunctionInterface {
/**
* Compiles a function.
*
* @return string The PHP code for the function
*/
public function compile();
public function needsEnvironment();
public function needsContext();
public function getSafe(Twig_Node $filterArgs);
public function setArguments($arguments);
public function getArguments();
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_FunctionInterface:: |
public | function | Compiles a function. | 3 |
Twig_FunctionInterface:: |
public | function | 1 | |
Twig_FunctionInterface:: |
public | function | 1 | |
Twig_FunctionInterface:: |
public | function | 1 | |
Twig_FunctionInterface:: |
public | function | 1 | |
Twig_FunctionInterface:: |
public | function | 1 |