PluginGraylist
in package
Table of Contents
- $isWhitelist : bool
- $plugins : array<string|int, string>
- __construct() : mixed
- fromArray() : PluginGraylist
- getPlugins() : array<string|int, string>
- isAllowed() : bool
- Returns whether the given name is permitted by this graylist.
- isWhitelist() : bool
- toArray() : array<string|int, mixed>
Properties
$isWhitelist
private
bool
$isWhitelist
= false
$plugins
private
array<string|int, string>
$plugins
Methods
__construct()
public
__construct([array<string|int, string> $plugins = [] ][, bool $whitelist = false ]) : mixed
Parameters
- $plugins : array<string|int, string> = []
- $whitelist : bool = false
Return values
mixed —fromArray()
public
static fromArray(array<string|int, mixed> $array) : PluginGraylist
Parameters
- $array : array<string|int, mixed>
Return values
PluginGraylist —getPlugins()
public
getPlugins() : array<string|int, string>
Return values
array<string|int, string> —isAllowed()
Returns whether the given name is permitted by this graylist.
public
isAllowed(string $name) : bool
Parameters
- $name : string
Return values
bool —isWhitelist()
public
isWhitelist() : bool
Return values
bool —toArray()
public
toArray() : array<string|int, mixed>