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

Represents a template test as a Node. More...

+ Inheritance diagram for Twig_Test_Node:
+ Collaboration diagram for Twig_Test_Node:

Public Member Functions

 __construct ($class, array $options=array())
 
 getClass ()
 
 compile ()
 Compiles a test. More...
 
- Public Member Functions inherited from Twig_Test
 __construct (array $options=array())
 
 getCallable ()
 

Protected Attributes

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

Detailed Description

Represents a template test as a Node.

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 21 of file Node.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 25 of file Node.php.

References $class, and Twig_Test\$options.

26  {
27  parent::__construct($options);
28 
29  $this->class = $class;
30  }
$options
Definition: Test.php:23

Member Function Documentation

◆ compile()

Twig_Test_Node::compile ( )

Compiles a test.

Returns
string The PHP code for the test

Implements Twig_TestInterface.

Definition at line 37 of file Node.php.

38  {
39  }

◆ getClass()

Twig_Test_Node::getClass ( )

Definition at line 32 of file Node.php.

References $class.

33  {
34  return $this->class;
35  }

Field Documentation

◆ $class

Twig_Test_Node::$class
protected

Definition at line 23 of file Node.php.

Referenced by __construct(), and getClass().


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