Table of Contents
Constants
-
API_VERSION
= 3
-
INCIDENT_EXPIRATION_TIME
= 600
-
IP_LIST
= 'api-ip-list'
-
MAX_INCIDENT_COUNT
= 5
Properties
-
$apiKey
: ApiKey
-
$model
: ProductoImagen
-
$request
: Request
-
$response
: Response
-
$url
: string
Methods
-
__construct()
: mixed
-
doDELETE()
: void
-
doGET()
: void
-
doPOST()
: void
-
doPUT()
: void
-
getPageData()
: array<string|int, mixed>
-
run()
: void
-
db()
: DataBase
-
getUriParam()
: string
-
listAll()
: void
-
returnResult()
: void
-
runResource()
: void
-
setError()
: void
-
setOk()
: void
-
getWhereValues()
: array<string|int, mixed>
-
saveResource()
: void
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
__construct()
public
__construct(string $className[, string $url = '' ]) : mixed
Parameters
-
$className
: string
-
-
$url
: string
= ''
-
doDELETE()
public
doDELETE() : void
doGET()
public
doGET() : void
doPOST()
public
doPOST() : void
doPUT()
public
doPUT() : void
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
-
listAll()
protected
listAll() : void
returnResult()
protected
returnResult(array<string|int, mixed> $data) : void
Parameters
-
$data
: array<string|int, mixed>
-
runResource()
protected
runResource() : void
setError()
protected
setError(string $message[, array<string|int, mixed>|null $data = null ][, int $status = Response::HTTP_BAD_REQUEST ]) : void
Parameters
-
$message
: string
-
-
$data
: array<string|int, mixed>|null
= null
-
-
$status
: int
= Response::HTTP_BAD_REQUEST
-
setOk()
protected
setOk(string $message[, array<string|int, mixed>|null $data = null ]) : void
Parameters
-
$message
: string
-
-
$data
: array<string|int, mixed>|null
= null
-
getWhereValues()
private
getWhereValues(mixed $filter, mixed $operation[, mixed $defaultOperation = 'AND' ]) : array<string|int, mixed>
Parameters
-
$filter
: mixed
-
-
$operation
: mixed
-
-
$defaultOperation
: mixed
= 'AND'
-
Return values
array<string|int, mixed>
saveResource()
private
saveResource() : void