Documentation

HttpInput
in package

FinalYes

Assists in processing input data for requests.

Table of Contents

Methods

put()  : mixed
Fetch an item from the PUT array.
isNestedNode()  : bool
Check for nested nodes.
setNestedNode()  : void
Set nested node.

Methods

put()

Fetch an item from the PUT array.

public static put([mixed|null $index = null ][, bool|null $xssClean = null ]) : mixed
Parameters
$index : mixed|null = null

(optional) Index for item to be fetched from $array. Default is null.

$xssClean : bool|null = null

(optional) Whether to apply XSS filtering. Default is null.

Return values
mixed

PUT data.

isNestedNode()

Check for nested nodes.

private static isNestedNode(string $name[, string|null &$parentName = null ][, string|null &$childNames = null ]) : bool
Parameters
$name : string

Name attribute.

$parentName : string|null = null

(optional) Parent node name.

$childNames : string|null = null

(optional) Child node name.

Return values
bool

Nested node or not.

setNestedNode()

Set nested node.

private static setNestedNode(array<string|int, mixed> &$data, string|null $value, string $parentName, string $childNames) : void
Parameters
$data : array<string|int, mixed>

Request Data.

$value : string|null

Parameter Value.

$parentName : string

Parent node name.

$childNames : string

Child node name.


        
On this page

Search results