ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_Sandbox_SecurityNotAllowedFunctionError Class Reference

Exception thrown when a not allowed function is used in a template. More...

+ Inheritance diagram for Twig_Sandbox_SecurityNotAllowedFunctionError:
+ Collaboration diagram for Twig_Sandbox_SecurityNotAllowedFunctionError:

Public Member Functions

 __construct ($message, $functionName, $lineno=-1, $filename=null, Exception $previous=null)
 
 getFunctionName ()
 
- 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)
 

Private Attributes

 $functionName
 

Additional Inherited Members

- Protected Member Functions inherited from Twig_Error
 updateRepr ()
 
 guessTemplateInfo ()
 
- Protected Attributes inherited from Twig_Error
 $lineno
 
 $filename
 
 $rawMessage
 
 $previous
 

Detailed Description

Exception thrown when a not allowed function is used in a template.

Author
Martin HasoĊˆ marti.nosp@m.n.ha.nosp@m.son@g.nosp@m.mail.nosp@m..com

Definition at line 17 of file SecurityNotAllowedFunctionError.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Sandbox_SecurityNotAllowedFunctionError::__construct (   $message,
  $functionName,
  $lineno = -1,
  $filename = null,
Exception  $previous = null 
)

Definition at line 21 of file SecurityNotAllowedFunctionError.php.

References Twig_Error\$filename, $functionName, Twig_Error\$lineno, $message, and Twig_Error\$previous.

22  {
23  parent::__construct($message, $lineno, $filename, $previous);
24  $this->functionName = $functionName;
25  }
catch(Exception $e) $message

Member Function Documentation

◆ getFunctionName()

Twig_Sandbox_SecurityNotAllowedFunctionError::getFunctionName ( )

Field Documentation

◆ $functionName

Twig_Sandbox_SecurityNotAllowedFunctionError::$functionName
private

Definition at line 19 of file SecurityNotAllowedFunctionError.php.

Referenced by __construct(), and getFunctionName().


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