SecurityNotAllowedFunctionError
extends SecurityError
in package
FinalYes
Exception thrown when a not allowed function is used in a template.
Tags
Table of Contents
Properties
- $functionName : mixed
- $lineno : mixed
- $name : mixed
- $rawMessage : mixed
- $sourceCode : mixed
- $sourcePath : mixed
Methods
- __construct() : mixed
- Constructor.
- appendMessage() : void
- getFunctionName() : string
- getRawMessage() : string
- getSourceContext() : Source|null
- getTemplateLine() : int
- guess() : void
- setSourceContext() : void
- setTemplateLine() : void
- guessTemplateInfo() : void
- updateRepr() : void
Properties
$functionName
private
mixed
$functionName
$lineno
private
mixed
$lineno
$name
private
mixed
$name
$rawMessage
private
mixed
$rawMessage
$sourceCode
private
mixed
$sourceCode
$sourcePath
private
mixed
$sourcePath
Methods
__construct()
Constructor.
public
__construct(string $message, string $functionName) : mixed
By default, automatic guessing is enabled.
Parameters
- $message : string
-
The error message
- $functionName : string
appendMessage()
public
appendMessage(mixed $rawMessage) : void
Parameters
- $rawMessage : mixed
getFunctionName()
public
getFunctionName() : string
Return values
stringgetRawMessage()
public
getRawMessage() : string
Return values
stringgetSourceContext()
public
getSourceContext() : Source|null
Return values
Source|nullgetTemplateLine()
public
getTemplateLine() : int
Return values
intguess()
public
guess() : void
setSourceContext()
public
setSourceContext([Source|null $source = null ]) : void
Parameters
- $source : Source|null = null
setTemplateLine()
public
setTemplateLine(int $lineno) : void
Parameters
- $lineno : int
guessTemplateInfo()
private
guessTemplateInfo() : void
updateRepr()
private
updateRepr() : void