Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
API Index — Namespaces, Packages, Reports, Indices

REST
in package

Table of Contents

Properties

$_allow  : array<int|string, mixed>
$_content_type  : string
$_request  : mixed
$_response  : mixed
$_code  : int
$_method  : string

Methods

__construct()  : mixed
get_referer()  : mixed
get_request_method()  : mixed
response()  : void
setContentType()  : void
cleanInputs()  : mixed
inputs()  : void
requestValues()  : array<int|string, mixed>
serverValue()  : mixed
setHeaders()  : void

Properties

$_allow

public array<int|string, mixed> $_allow = array()

$_content_type

public string $_content_type = "application/json"

$_request

public mixed $_request = array()

$_response

public mixed $_response

$_code

private int $_code = 200

$_method

private string $_method = ""

Methods

__construct()

public __construct(mixed $request, mixed $response) : mixed
Parameters
$request : mixed
$response : mixed

get_referer()

public get_referer() : mixed

get_request_method()

public get_request_method() : mixed

response()

public response(mixed $data, int|null $status) : void
Parameters
$data : mixed
$status : int|null

setContentType()

public setContentType(string $type) : void
Parameters
$type : string

cleanInputs()

private cleanInputs(mixed $data) : mixed
Parameters
$data : mixed

inputs()

private inputs() : void

requestValues()

private requestValues(string $key) : array<int|string, mixed>
Parameters
$key : string
Return values
array<int|string, mixed>

serverValue()

private serverValue(string $key[, mixed $default = null ]) : mixed
Parameters
$key : string
$default : mixed = null

setHeaders()

private setHeaders() : void
On this page