Abstract Class Twig_Function

InheritanceTwig_Function
ImplementsTwig_FunctionCallableInterface, Twig_FunctionInterface
SubclassesTwig_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.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$arguments Twig_Function
$options Twig_Function

Property Details

$arguments protected property
protected $arguments = []
$options protected property
protected $options null

Method Details

__construct() public method

public void __construct ( array $options = [] )
$options
getArguments() public method

public void getArguments ( )
getCallable() public method

public void getCallable ( )
getSafe() public method

public void getSafe ( Twig_Node $functionArgs )
$functionArgs
needsContext() public method

public void needsContext ( )
needsEnvironment() public method

public void needsEnvironment ( )
setArguments() public method

public void setArguments ( $arguments )
$arguments