|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Checks if a variable is defined in the current context. More...
Inheritance diagram for Twig_Node_Expression_Test_Defined:
Collaboration diagram for Twig_Node_Expression_Test_Defined:Public Member Functions | |
| __construct (Twig_NodeInterface $node, $name, Twig_NodeInterface $arguments=null, $lineno) | |
| compile (Twig_Compiler $compiler) | |
| Compiles the node to PHP. More... | |
| __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 () | |
Protected Member Functions | |
| changeIgnoreStrictCheck (Twig_Node_Expression_GetAttr $node) | |
Protected Member Functions inherited from Twig_Node_Expression_Call | |
| compileCallable (Twig_Compiler $compiler) | |
| compileArguments (Twig_Compiler $compiler) | |
| getArguments ($callable, $arguments) | |
| normalizeName ($name) | |
Additional Inherited Members | |
Protected Attributes inherited from Twig_Node | |
| $nodes | |
| $attributes | |
| $lineno | |
| $tag | |
Checks if a variable is defined in the current context.
{# defined works with variable names and variable attributes #}
{% if foo is defined %}
{# ... #}
{% endif %}
Definition at line 24 of file Defined.php.
| Twig_Node_Expression_Test_Defined::__construct | ( | Twig_NodeInterface | $node, |
| $name, | |||
| Twig_NodeInterface | $arguments = null, |
||
| $lineno | |||
| ) |
Reimplemented from Twig_Node_Expression_Test.
Definition at line 26 of file Defined.php.
References Twig_Node\$lineno, Twig_Node\$name, changeIgnoreStrictCheck(), and Twig_Node\getTemplateLine().
Here is the call graph for this function:
|
protected |
Definition at line 46 of file Defined.php.
References changeIgnoreStrictCheck(), Twig_Node\getNode(), and Twig_Node\setAttribute().
Referenced by __construct(), and changeIgnoreStrictCheck().
Here is the call graph for this function:
Here is the caller graph for this function:| Twig_Node_Expression_Test_Defined::compile | ( | Twig_Compiler | $compiler | ) |
Compiles the node to PHP.
Reimplemented from Twig_Node_Expression_Test.
Definition at line 55 of file Defined.php.
References Twig_Node\getNode(), and Twig_Compiler\subcompile().
Here is the call graph for this function: