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

Represents a template test. More...

+ Inheritance diagram for Twig_Test:
+ Collaboration diagram for Twig_Test:

Public Member Functions

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

Protected Attributes

 $options
 
 $arguments = array()
 

Detailed Description

Represents a template test.

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 Test.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Test::__construct ( array  $options = array())

Definition at line 26 of file Test.php.

References $options, and array.

27  {
28  $this->options = array_merge(array(
29  'callable' => null,
30  ), $options);
31  }
$options
Definition: Test.php:23
Create styles array
The data for the language used.

Member Function Documentation

◆ getCallable()

Twig_Test::getCallable ( )

Implements Twig_TestCallableInterface.

Definition at line 33 of file Test.php.

34  {
35  return $this->options['callable'];
36  }

Field Documentation

◆ $arguments

Twig_Test::$arguments = array()
protected

Definition at line 24 of file Test.php.

◆ $options

Twig_Test::$options
protected

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