FacturaScripts

ApiPlugins extends ApiController
in package

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

Constants

INCIDENT_EXPIRATION_TIME

public mixed INCIDENT_EXPIRATION_TIME = 600

Properties

Methods

__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>

getUriParam()

protected getUriParam(string $num) : string
Parameters
$num : string
Return values
string

applyFilter()

private applyFilter(array<string|int, mixed> $plugins, mixed $filter) : array<string|int, mixed>
Parameters
$plugins : array<string|int, mixed>
$filter : mixed
Return values
array<string|int, mixed>

applySort()

private applySort(mixed $plugins, mixed $sort) : array<string|int, mixed>
Parameters
$plugins : mixed
$sort : mixed
Return values
array<string|int, mixed>

compare()

private compare(mixed $a, mixed $b, string $operator) : bool
Parameters
$a : mixed
$b : mixed
$operator : string
Return values
bool

        
On this page

Search results