class Twig_Sandbox_SecurityNotAllowedFunctionError in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Sandbox/SecurityNotAllowedFunctionError.php \Twig_Sandbox_SecurityNotAllowedFunctionError
Exception thrown when a not allowed function is used in a template.
@author Martin Hasoň <martin.hason@gmail.com>
Hierarchy
- class \Twig_Error extends \Exception
Expanded class hierarchy of Twig_Sandbox_SecurityNotAllowedFunctionError
File
- vendor/
Twig/ Sandbox/ SecurityNotAllowedFunctionError.php, line 17
View source
class Twig_Sandbox_SecurityNotAllowedFunctionError extends Twig_Sandbox_SecurityError {
private $functionName;
public function __construct($message, $functionName, $lineno = -1, $filename = null, Exception $previous = null) {
parent::__construct($message, $lineno, $filename, $previous);
$this->functionName = $functionName;
}
public function getFunctionName() {
return $this->functionName;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_Error:: |
protected | property | ||
Twig_Error:: |
protected | property | ||
Twig_Error:: |
protected | property | ||
Twig_Error:: |
protected | property | ||
Twig_Error:: |
public | function | Gets the raw message. | |
Twig_Error:: |
public | function | Gets the filename where the error occurred. | |
Twig_Error:: |
public | function | Gets the template line where the error occurred. | |
Twig_Error:: |
public | function | ||
Twig_Error:: |
protected | function | ||
Twig_Error:: |
public | function | Sets the filename where the error occurred. | |
Twig_Error:: |
public | function | Sets the template line where the error occurred. | |
Twig_Error:: |
protected | function | ||
Twig_Error:: |
public | function | For PHP < 5.3.0, provides access to the getPrevious() method. | |
Twig_Sandbox_SecurityNotAllowedFunctionError:: |
private | property | ||
Twig_Sandbox_SecurityNotAllowedFunctionError:: |
public | function | ||
Twig_Sandbox_SecurityNotAllowedFunctionError:: |
public | function |
Constructor. Overrides Twig_Error:: |