EmailFilter
class EmailFilter extends AttributeFilter
Traits
Properties
protected callable | $callback | from ProgrammableCallback | |
protected string | $js | from ProgrammableCallback | |
protected array | $params | from ProgrammableCallback | |
protected array | $vars | from ProgrammableCallback | |
protected array | $markedSafe | from TemplateSafeness |
Methods
Constructor
Add a parameter by value
Add a parameter by name
Set or overwrite one of this callback's variable
Set all of this callback's variables at once
Return an array-based representation of this object to be used for parsing
Normalize a callback's representation
Return whether this object is safe to be used in given context
Return whether this object is safe to be used as a URL
Return whether this object is safe to be used in CSS
Return whether this object is safe to be used in JavaScript
Details
at line 17
__construct()
Constructor
in
ProgrammableCallback at line 58
ProgrammableCallback
addParameterByValue(mixed $paramValue)
Add a parameter by value
in
ProgrammableCallback at line 73
ProgrammableCallback
addParameterByName(string $paramName)
Add a parameter by name
The value will be dynamically generated by the caller
in
ProgrammableCallback at line 90
callable
getCallback()
Get this object's callback
in
ProgrammableCallback at line 100
string
getJS()
Get this callback's JavaScript
in
ProgrammableCallback at line 110
array
getVars()
Get this object's variables
in
ProgrammableCallback at line 120
ProgrammableCallback
resetParameters()
Remove all the parameters
in
ProgrammableCallback at line 133
ProgrammableCallback
setJS(string $js)
Set this callback's JavaScript
in
ProgrammableCallback at line 147
ProgrammableCallback
setVar(string $name, string $value)
Set or overwrite one of this callback's variable
in
ProgrammableCallback at line 160
ProgrammableCallback
setVars(array $vars)
Set all of this callback's variables at once
in
ProgrammableCallback at line 170
array|Dictionary|null
asConfig()
Return an array-based representation of this object to be used for parsing
NOTE: if this method was named getConfig() it could interfere with magic getters from the Configurable trait
in
ProgrammableCallback at line 209
protected void
autoloadJS()
Try to load the JavaScript source for this callback
in
ProgrammableCallback at line 232
protected callable
normalizeCallback(callable $callback)
Normalize a callback's representation
in
TemplateSafeness at line 23
protected bool
isSafe(string $context)
Return whether this object is safe to be used in given context
in
TemplateSafeness at line 34
bool
isSafeAsURL()
Return whether this object is safe to be used as a URL
in
TemplateSafeness at line 44
bool
isSafeInCSS()
Return whether this object is safe to be used in CSS
in
TemplateSafeness at line 54
bool
isSafeInJS()
Return whether this object is safe to be used in JavaScript
in
TemplateSafeness at line 64
TemplateSafeness
markAsSafeAsURL()
Return whether this object is safe to be used as a URL
in
TemplateSafeness at line 76
TemplateSafeness
markAsSafeInCSS()
Return whether this object is safe to be used in CSS
in
TemplateSafeness at line 88
TemplateSafeness
markAsSafeInJS()
Return whether this object is safe to be used in JavaScript
in
TemplateSafeness at line 100
TemplateSafeness
resetSafeness()
Reset the "marked safe" statuses