class Twig_Function_Function in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Function/Function.php \Twig_Function_Function
Represents a function template function.
Use Twig_SimpleFunction instead.
@author Arnaud Le Blanc <arnaud.lb@gmail.com>
Hierarchy
- class \Twig_Function implements Twig_FunctionCallableInterface, Twig_FunctionInterface
- class \Twig_Function_Function
Expanded class hierarchy of Twig_Function_Function
Deprecated
since 1.12 (to be removed in 2.0)
File
- vendor/
twig/ twig/ lib/ Twig/ Function/ Function.php, line 24
View source
class Twig_Function_Function extends Twig_Function {
protected $function;
public function __construct($function, array $options = array()) {
$options['callable'] = $function;
parent::__construct($options);
$this->function = $function;
}
public function compile() {
return $this->function;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_Function:: |
protected | property | ||
Twig_Function:: |
protected | property | ||
Twig_Function:: |
public | function |
Overrides Twig_FunctionInterface:: |
|
Twig_Function:: |
public | function |
Overrides Twig_FunctionCallableInterface:: |
|
Twig_Function:: |
public | function |
Overrides Twig_FunctionInterface:: |
|
Twig_Function:: |
public | function |
Overrides Twig_FunctionInterface:: |
|
Twig_Function:: |
public | function |
Overrides Twig_FunctionInterface:: |
|
Twig_Function:: |
public | function |
Overrides Twig_FunctionInterface:: |
|
Twig_Function_Function:: |
protected | property | ||
Twig_Function_Function:: |
public | function |
Compiles a function. Overrides Twig_FunctionInterface:: |
|
Twig_Function_Function:: |
public | function |
Overrides Twig_Function:: |