ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_Node_Expression_Binary_Matches Class Reference
+ Inheritance diagram for Twig_Node_Expression_Binary_Matches:
+ Collaboration diagram for Twig_Node_Expression_Binary_Matches:

Public Member Functions

 compile (Twig_Compiler $compiler)
 Compiles the node to PHP. More...
 
 operator (Twig_Compiler $compiler)
 
- Public Member Functions inherited from Twig_Node_Expression_Binary
 __construct (Twig_NodeInterface $left, Twig_NodeInterface $right, $lineno)
 
 compile (Twig_Compiler $compiler)
 Compiles the node to PHP. More...
 
 operator (Twig_Compiler $compiler)
 
- Public Member Functions inherited from Twig_Node
 __construct (array $nodes=array(), array $attributes=array(), $lineno=0, $tag=null)
 Constructor. More...
 
 __toString ()
 
 toXml ($asDom=false)
 
 compile (Twig_Compiler $compiler)
 Compiles the node to PHP. More...
 
 getTemplateLine ()
 
 getLine ()
 
 getNodeTag ()
 
 hasAttribute ($name)
 
 getAttribute ($name)
 
 setAttribute ($name, $value)
 
 removeAttribute ($name)
 
 hasNode ($name)
 
 getNode ($name)
 
 setNode ($name, $node=null)
 
 removeNode ($name)
 
 count ()
 
 getIterator ()
 
 setTemplateName ($name)
 
 getTemplateName ()
 
 setFilename ($name)
 
 getFilename ()
 

Additional Inherited Members

- Protected Attributes inherited from Twig_Node
 $nodes
 
 $attributes
 
 $lineno
 
 $tag
 

Detailed Description

Definition at line 11 of file Matches.php.

Member Function Documentation

◆ compile()

Twig_Node_Expression_Binary_Matches::compile ( Twig_Compiler  $compiler)

Compiles the node to PHP.

Implements Twig_NodeInterface.

Definition at line 13 of file Matches.php.

References Twig_Node\getNode(), and Twig_Compiler\raw().

14  {
15  $compiler
16  ->raw('preg_match(')
17  ->subcompile($this->getNode('right'))
18  ->raw(', ')
19  ->subcompile($this->getNode('left'))
20  ->raw(')')
21  ;
22  }
raw($string)
Adds a raw string to the compiled code.
Definition: Compiler.php:112
getNode($name)
Definition: Node.php:186
+ Here is the call graph for this function:

◆ operator()

Twig_Node_Expression_Binary_Matches::operator ( Twig_Compiler  $compiler)

Definition at line 24 of file Matches.php.

References Twig_Compiler\raw().

25  {
26  return $compiler->raw('');
27  }
raw($string)
Adds a raw string to the compiled code.
Definition: Compiler.php:112
+ Here is the call graph for this function:

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