Interface Twig_FunctionInterface

Implemented byTwig_Function, Twig_Function_Function, Twig_Function_Method, Twig_Function_Node
Deprecated since version since 1.12 (to be removed in 2.0)

Represents a template function.

Use Twig_SimpleFunction instead.

Method Details

compile() public abstract method

Compiles a function.

public abstract string compile ( )
return string

The PHP code for the function

getArguments() public abstract method

public abstract void getArguments ( )
getSafe() public abstract method

public abstract void getSafe ( Twig_Node $filterArgs )
$filterArgs
needsContext() public abstract method

public abstract void needsContext ( )
needsEnvironment() public abstract method

public abstract void needsEnvironment ( )
setArguments() public abstract method

public abstract void setArguments ( $arguments )
$arguments