|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Checks if a variable is the exact same value as a constant. More...
Inheritance diagram for Twig_Node_Expression_Test_Constant:
Collaboration diagram for Twig_Node_Expression_Test_Constant:Public Member Functions | |
| compile (Twig_Compiler $compiler) | |
| Compiles the node to PHP. More... | |
Public Member Functions inherited from Twig_Node_Expression_Test | |
| __construct (Twig_NodeInterface $node, $name, Twig_NodeInterface $arguments=null, $lineno) | |
| compile (Twig_Compiler $compiler) | |
| Compiles the node to PHP. More... | |
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 () | |
| compile (Twig_Compiler $compiler) | |
| Compiles the node to PHP. More... | |
| getLine () | |
| getNodeTag () | |
Additional Inherited Members | |
Protected Member Functions inherited from Twig_Node_Expression_Call | |
| compileCallable (Twig_Compiler $compiler) | |
| compileArguments (Twig_Compiler $compiler) | |
| getArguments ($callable, $arguments) | |
| normalizeName ($name) | |
Protected Attributes inherited from Twig_Node | |
| $nodes | |
| $attributes | |
| $lineno | |
| $tag | |
Checks if a variable is the exact same value as a constant.
{% if post.status is constant('Post::PUBLISHED') %}
the status attribute is exactly the same as Post::PUBLISHED
{% endif %}
Definition at line 23 of file Constant.php.
| Twig_Node_Expression_Test_Constant::compile | ( | Twig_Compiler | $compiler | ) |
Compiles the node to PHP.
Reimplemented from Twig_Node_Expression_Test.
Definition at line 25 of file Constant.php.
References Twig_Node\getNode(), Twig_Node\hasNode(), Twig_Compiler\raw(), and Twig_Compiler\subcompile().
Here is the call graph for this function: