RequestParameter

Request parameter holder

package

Default

Methods

__construct

__construct() 

param $value [mixed] <b> create($value) </b>

create( $arg0,  $arg1 = null) : \io\vertx\jphp\ext\web\api\RequestParameter
static

param $name [string] param $value [mixed] create($name, $value)

Arguments

$arg0

string | mixed

$arg1

mixed

Response

\io\vertx\jphp\ext\web\api\RequestParameter

Returns null if value is not a list, otherwise it returns value

getArray() : array

Response

array

Returns null if value is not a Boolean, otherwise it returns value

getBoolean() : boolean

Response

boolean

Returns null if value is not a Double, otherwise it returns value

getDouble() : float

Response

float

Returns null if value is not a Float, otherwise it returns value

getFloat() : float

Response

float

Returns null if value is not an Integer, otherwise it returns value

getInteger() : integer

Response

integer

Returns null if value is not a JsonArray, otherwise it returns value

getJsonArray() : array

Response

array

Returns null if value is not a JsonObject, otherwise it returns value

getJsonObject() : array

Response

array

Returns null if value is not a Long, otherwise it returns value

getLong() : integer

Response

integer

Get parameter name

getName() : string

Response

string

If value is a map of fields, it returns keys of map, otherwise it returns null

getObjectKeys() : array

Response

array

If value is a map of fields, it returns value of field with key provided, otherwise it returns null

getObjectValue( $arg0) : \io\vertx\jphp\ext\web\api\RequestParameter

Arguments

$arg0

string

Response

\io\vertx\jphp\ext\web\api\RequestParameter

Returns null if value is not a String, otherwise it returns value

getString() : string

Response

string

Returns true if value of RequestParameter is an array

isArray() : boolean

Response

boolean

Returns true if value of RequestParameter is a Boolean instance

isBoolean() : boolean

Response

boolean

Returns true if value of RequestParameter is a Double instance

isDouble() : boolean

Response

boolean

Alias of @see \io\vertx\jphp\ext\web\api\RequestParameter::isNull

isEmpty() : boolean

Response

boolean

Returns true if value of RequestParameter is a Float instance

isFloat() : boolean

Response

boolean

Returns true if value of RequestParameter is an Integer instance

isInteger() : boolean

Response

boolean

Returns true if value of RequestParameter is a JsonArray instance

isJsonArray() : boolean

Response

boolean

Returns true if value of RequestParameter is a JsonObject instance

isJsonObject() : boolean

Response

boolean

Returns true if value of RequestParameter is a Long instance

isLong() : boolean

Response

boolean

Returns true if value is null

isNull() : boolean

Response

boolean

Returns true if value of RequestParameter is a map of fields

isObject() : boolean

Response

boolean

Returns true if value of RequestParameter is a String instance

isString() : boolean

Response

boolean

Merge this request parameter with another one. Note: the parameter passed by argument has the priority

merge( $arg0) : \io\vertx\jphp\ext\web\api\RequestParameter

Arguments

$arg0

RequestParameter

Response

\io\vertx\jphp\ext\web\api\RequestParameter

Set parameter name

setName( $arg0) : void

Arguments

$arg0

string

Set value

setValue( $arg0) : void

Arguments

$arg0

mixed

Converts deeply this RequestParameter in a Json representation

toJson() : mixed

Response

mixed