abstract class ArgumentsHelper (View source)

Helper to unify different HTTP request arguments.

Methods

static array
buildUnifiedArguments(array $getArguments, array $postArguments, array $untangledFiles)

Takes the raw GET & POST arguments and maps them into the request object.

static array
mergeArgumentArrays(array $arguments, array ...$argumentArrays)

No description

Details

static array buildUnifiedArguments(array $getArguments, array $postArguments, array $untangledFiles)

Takes the raw GET & POST arguments and maps them into the request object.

Afterwards all mapped arguments can be retrieved by the getArgument(s) method, no matter if they have been GET, POST or PUT arguments before.

The order of merging is GET, POST, FILES, with later items overriding earlier ones.

Parameters

array $getArguments

Arguments as found in $_GET

array $postArguments

Arguments as found in $_POST

array $untangledFiles

Untangled $_FILES as provided by \Neos\Flow\Http\Helper\UploadedFilesHelper::untangleFilesArray

Return Value

array

the unified arguments

See also

UploadedFilesHelper::untangleFilesArray

static array mergeArgumentArrays(array $arguments, array ...$argumentArrays)

No description

Parameters

array $arguments
array ...$argumentArrays

Return Value

array