|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Exception thrown when a syntax error occurs during lexing or parsing of a template. More...
Inheritance diagram for Twig_Error_Syntax:
Collaboration diagram for Twig_Error_Syntax:Public Member Functions | |
| addSuggestions ($name, array $items) | |
| Tweaks the error message to include suggestions. More... | |
Public Member Functions inherited from Twig_Error | |
| __construct ($message, $lineno=-1, $source=null, Exception $previous=null) | |
| Constructor. More... | |
| getRawMessage () | |
| Gets the raw message. More... | |
| getTemplateFile () | |
| Gets the logical name where the error occurred. More... | |
| setTemplateFile ($name) | |
| Sets the logical name where the error occurred. More... | |
| getTemplateName () | |
| Gets the logical name where the error occurred. More... | |
| setTemplateName ($name) | |
| Sets the logical name where the error occurred. More... | |
| getTemplateLine () | |
| Gets the template line where the error occurred. More... | |
| setTemplateLine ($lineno) | |
| Sets the template line where the error occurred. More... | |
| getSourceContext () | |
| Gets the source context of the Twig template where the error occurred. More... | |
| setSourceContext (Twig_Source $source=null) | |
| Sets the source context of the Twig template where the error occurred. More... | |
| guess () | |
| __call ($method, $arguments) | |
| For PHP < 5.3.0, provides access to the getPrevious() method. More... | |
| appendMessage ($rawMessage) | |
Static Public Member Functions | |
| static | computeAlternatives ($name, $items) |
Additional Inherited Members | |
Protected Member Functions inherited from Twig_Error | |
| updateRepr () | |
| guessTemplateInfo () | |
Protected Attributes inherited from Twig_Error | |
| $lineno | |
| $filename | |
| $rawMessage | |
| $previous | |
Exception thrown when a syntax error occurs during lexing or parsing of a template.
Definition at line 18 of file Syntax.php.
| Twig_Error_Syntax::addSuggestions | ( | $name, | |
| array | $items | ||
| ) |
Tweaks the error message to include suggestions.
| string | $name | The original name of the item that does not exist |
| array | $items | An array of possible items |
Definition at line 26 of file Syntax.php.
References $name, and Twig_Error\appendMessage().
Here is the call graph for this function:
|
static |
Definition at line 40 of file Syntax.php.
References $name.
Referenced by Twig_Environment\computeAlternatives().
Here is the caller graph for this function: