ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Function_Node Class Reference

Represents a template function as a node. More...

+ Inheritance diagram for Twig_Function_Node:
+ Collaboration diagram for Twig_Function_Node:

Public Member Functions

 __construct ($class, array $options=array())
 
 getClass ()
 
 compile ()
 Compiles a function. More...
 
- Public Member Functions inherited from Twig_Function
 __construct (array $options=array())
 
 setArguments ($arguments)
 
 getArguments ()
 
 needsEnvironment ()
 
 needsContext ()
 
 getSafe (Twig_Node $functionArgs)
 
 getCallable ()
 

Protected Attributes

 $class
 
- Protected Attributes inherited from Twig_Function
 $options
 
 $arguments = array()
 

Detailed Description

Represents a template function as a node.

Use Twig_SimpleFunction instead.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
Deprecated:
since 1.12 (to be removed in 2.0)

Definition at line 23 of file Node.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Function_Node::__construct (   $class,
array  $options = array() 
)

Definition at line 27 of file Node.php.

References $class, and Twig_Function\$options.

28  {
29  parent::__construct($options);
30 
31  $this->class = $class;
32  }

Member Function Documentation

◆ compile()

Twig_Function_Node::compile ( )

Compiles a function.

Returns
string The PHP code for the function

Implements Twig_FunctionInterface.

Definition at line 39 of file Node.php.

40  {
41  }

◆ getClass()

Twig_Function_Node::getClass ( )

Definition at line 34 of file Node.php.

References $class.

35  {
36  return $this->class;
37  }

Field Documentation

◆ $class

Twig_Function_Node::$class
protected

Definition at line 25 of file Node.php.

Referenced by __construct(), and getClass().


The documentation for this class was generated from the following file: