Table of Contents
Constants
-
API_VERSION
= 3
-
INCIDENT_EXPIRATION_TIME
= 600
-
IP_LIST
= 'api-ip-list'
-
MAX_INCIDENT_COUNT
= 5
Properties
-
$apiKey
: ApiKey
-
$request
: Request
-
$response
: Response
-
$url
: string
Methods
-
__construct()
: mixed
-
getPageData()
: array<string|int, mixed>
-
run()
: void
-
db()
: DataBase
-
getUriParam()
: string
-
runResource()
: void
-
applyFilter()
: array<string|int, mixed>
-
applySort()
: array<string|int, mixed>
-
compare()
: bool
-
disablePlugin()
: void
-
enablePlugin()
: void
-
formatPluginData()
: array<string|int, mixed>
-
getLogMessages()
: string
-
getPlugin()
: void
-
handlePluginAction()
: void
-
listPlugins()
: void
-
validatePluginAccess()
: object|null
API_VERSION
public
mixed
API_VERSION
= 3
INCIDENT_EXPIRATION_TIME
public
mixed
INCIDENT_EXPIRATION_TIME
= 600
IP_LIST
public
mixed
IP_LIST
= 'api-ip-list'
MAX_INCIDENT_COUNT
public
mixed
MAX_INCIDENT_COUNT
= 5
$apiKey
protected
ApiKey
$apiKey
$request
protected
Request
$request
$response
protected
Response
$response
$url
protected
string
$url
__construct()
public
__construct(string $className[, string $url = '' ]) : mixed
Parameters
-
$className
: string
-
-
$url
: string
= ''
-
getPageData()
public
getPageData() : array<string|int, mixed>
Return values
array<string|int, mixed>
run()
public
run() : void
db()
protected
db() : DataBase
getUriParam()
protected
getUriParam(string $num) : string
Parameters
-
$num
: string
-
runResource()
protected
runResource() : void
applyFilter()
private
applyFilter(array<string|int, mixed> $plugins, array<string|int, mixed> $filter) : array<string|int, mixed>
Parameters
-
$plugins
: array<string|int, mixed>
-
-
$filter
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
applySort()
private
applySort(array<string|int, mixed> $plugins, array<string|int, mixed> $sort) : array<string|int, mixed>
Parameters
-
$plugins
: array<string|int, mixed>
-
-
$sort
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
compare()
private
compare(mixed $a, mixed $b, string $operator) : bool
Parameters
-
$a
: mixed
-
-
$b
: mixed
-
-
$operator
: string
-
disablePlugin()
private
disablePlugin(string $pluginName) : void
Parameters
-
$pluginName
: string
-
enablePlugin()
private
enablePlugin(string $pluginName) : void
Parameters
-
$pluginName
: string
-
private
formatPluginData(object $plugin) : array<string|int, mixed>
Parameters
-
$plugin
: object
-
Return values
array<string|int, mixed>
getLogMessages()
private
getLogMessages([string $default = '' ]) : string
Parameters
-
$default
: string
= ''
-
getPlugin()
private
getPlugin(string $pluginName) : void
Parameters
-
$pluginName
: string
-
handlePluginAction()
private
handlePluginAction(string $pluginName, string $action) : void
Parameters
-
$pluginName
: string
-
-
$action
: string
-
listPlugins()
private
listPlugins() : void
validatePluginAccess()
private
validatePluginAccess(string $pluginName) : object|null
Parameters
-
$pluginName
: string
-
Return values
object|null