ConfigurableMixin
Table of Contents
- applyConfiguration() : self
- exceptionIfNull() : void
- filterArray() : array<string|int, string>|null
- filterArrayMixed() : array<string|int, mixed>|null
- filterDomain() : string|null
- filterHtml() : string
- filterString() : string
- filterStringTags() : string
- filterStringUtf8() : string
- validateProperties() : void
Methods
applyConfiguration()
private
applyConfiguration(array<string|int, mixed>|null $configuration) : self
Parameters
- $configuration : array<string|int, mixed>|null
Tags
Return values
self —exceptionIfNull()
private
exceptionIfNull(mixed $value[, Throwable|null $throwable = null ]) : void
Parameters
- $value : mixed
-
a value to compare against NULL
- $throwable : Throwable|null = null
-
Optional. A Throwable exception to raise if $value is NULL.
Return values
void —filterArray()
private
filterArray(array<string|int, string>|null $filtering[, bool $keepKeys = false ]) : array<string|int, string>|null
Parameters
- $filtering : array<string|int, string>|null
-
an array of strings to filter, or NULL
- $keepKeys : bool = false
-
Optional. Whether to keep array keys or reindex the array appropriately.
Return values
array<string|int, string>|null —filterArrayMixed()
private
filterArrayMixed(array<string|int, mixed>|null $filtering[, bool $keepKeys = false ]) : array<string|int, mixed>|null
Parameters
- $filtering : array<string|int, mixed>|null
-
an array to filter, or NULL
- $keepKeys : bool = false
-
Optional. Whether to keep array keys or reindex the array appropriately.
Return values
array<string|int, mixed>|null —filterDomain()
private
filterDomain(string $domain) : string|null
Parameters
- $domain : string
Return values
string|null —filterHtml()
private
filterHtml(string $str[, int $flags = ENT_QUOTES | ENT_SUBSTITUTE ]) : string
Parameters
- $str : string
- $flags : int = ENT_QUOTES | ENT_SUBSTITUTE
Return values
string —filterString()
private
filterString(string $str[, bool $allowLineBreaks = false ]) : string
Parameters
- $str : string
- $allowLineBreaks : bool = false
Return values
string —filterStringTags()
private
filterStringTags(string $str[, bool $allowLineBreaks = false ]) : string
Parameters
- $str : string
- $allowLineBreaks : bool = false
Return values
string —filterStringUtf8()
private
filterStringUtf8(string $str[, bool $strip = false ]) : string
Parameters
- $str : string
- $strip : bool = false
Return values
string —validateProperties()
private
validateProperties() : void