\Ginger\RequestParameters

Ginger Request Parameters Handler

Summary

Methods
Properties
Constants
__construct()
getPostFromInput()
getDataParams()
cleanReservedParams()
getFilterParameters()
getDataParameters()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getParams()
getFilterParams()
parseOperators()
parseValue()
parseParameterValues()
$allParameters
$filterParameters
$dataParameters
N/A

Properties

$allParameters

$allParameters : array

Type

array — All parameters

$filterParameters

$filterParameters : array

Type

array — Filter parameters (from Url)

$dataParameters

$dataParameters : array

Type

array — All data parameters (from postfields object)

Methods

getPostFromInput()

getPostFromInput() : array

Parse postfield data when content-dispositino is happening, else return normal postfield vars

Returns

array

getDataParams()

getDataParams()

Get data params based on request method

cleanReservedParams()

cleanReservedParams()

Read all reserved params and add them to class value

getFilterParameters()

getFilterParameters() : array

Return all filter parameters

Returns

array

getDataParameters()

getDataParameters() : array

Return all data parameters

Returns

array

getParams()

getParams(string $currentPath, string $route)

Get all params

Parameters

string $currentPath
string $route

getFilterParams()

getFilterParams(string $path)

Get all "filter" params from uri path

Parameters

string $path

parseOperators()

parseOperators(array $params) : array

Loop through parameters and parse operators

Parameters

array $params

Returns

array

parseValue()

parseValue(string $input) : mixed

Formats the value for internals

Parameters

string $input

Returns

mixed

parseParameterValues()

parseParameterValues()

Loop through filter parameters and formats the values for internals