Handler
- Full name:
\Qubus\Http\Input\Handler
Properties
get
post
file
originalPost
Original post variables.
originalParams
Original get/params variables.
originalFile
Get original file variables.
request
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$request | \Qubus\Http\Request |
parseInputs
Parse input values.
parseFiles
Parameters:
Parameter | Type | Description |
---|---|---|
$files | array | Array with files to parse. |
$parentKey | string|null | Key from parent (used when parsing nested array). |
rearrangeFile
Rearrange multidimensional file object created by PHP.
Parameters:
Parameter | Type | Description |
---|---|---|
$values | array | |
$index | array | |
$original | array|null |
parseInputItem
Parse input item from array.
Parameters:
Parameter | Type | Description |
---|---|---|
$array | array |
find
Find input object.
public find(string $index, array $methods): string|\Qubus\Http\Input\Input|array|\Qubus\Http\Input\File|null
Parameters:
Parameter | Type | Description |
---|---|---|
$index | string | |
$methods | array |
getValueFromArray
Parameters:
Parameter | Type | Description |
---|---|---|
$array | array |
value
Get input element value matching index.
public value(string $index, string|null|mixed $defaultValue = null, array $methods): array|string|null
Parameters:
Parameter | Type | Description |
---|---|---|
$index | string | |
$defaultValue | string|null|mixed | |
$methods | array |
exists
Check if an input item exist. If an array is an $index parameter the method returns true if all elements exist.
Parameters:
Parameter | Type | Description |
---|---|---|
$index | string|array | |
$methods | array |
post
Find post-value by index or return default value.
public post(string $index, string|null $defaultValue = null): \Qubus\Http\Input\Input|array|string|null
Parameters:
Parameter | Type | Description |
---|---|---|
$index | string | |
$defaultValue | string|null |
file
Find file by index or return default value.
public file(string $index, string|null $defaultValue = null): \Qubus\Http\Input\File|array|string|null
Parameters:
Parameter | Type | Description |
---|---|---|
$index | string | |
$defaultValue | string|null |
get
Find parameter/query-string by index or return default value.
public get(string $index, string|null $defaultValue = null): \Qubus\Http\Input\Input|array|string|null
Parameters:
Parameter | Type | Description |
---|---|---|
$index | string | |
$defaultValue | string|null |
all
Get all get/post items.
Parameters:
Parameter | Type | Description |
---|---|---|
$filter | array | Only take items in filter. |
addGet
Add GET parameter.
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$input | \Qubus\Http\Input\Input |
addPost
Add POST parameter.
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$input | \Qubus\Http\Input\Input |
addFile
Add FILE parameter.
Parameters:
Parameter | Type | Description |
---|---|---|
$key | string | |
$file | \Qubus\Http\Input\File |
withOriginalPost
Set original post variables.
Parameters:
Parameter | Type | Description |
---|---|---|
$post | array |
Return Value:
$this
withOriginalParams
Set original get-variables.
Parameters:
Parameter | Type | Description |
---|---|---|
$params | array |
Return Value:
$this
withOriginalFile
Set original file posts variables.
Parameters:
Parameter | Type | Description |
---|---|---|
$file | array |
Return Value:
$this
Automatically generated on 2025-10-13