HumHub Documentation (unofficial)

Request
in package

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$content  : mixed
$cookies  : mixed
$files  : mixed
$method  : mixed
$parameters  : mixed
$server  : mixed
$uri  : mixed

Methods

__construct()  : mixed
getContent()  : string|null
Gets the request raw body data.
getCookies()  : array<string|int, mixed>
Gets the request cookies.
getFiles()  : array<string|int, mixed>
Gets the request server files.
getMethod()  : string
Gets the request HTTP method.
getParameters()  : array<string|int, mixed>
Gets the request parameters.
getServer()  : array<string|int, mixed>
Gets the request server parameters.
getUri()  : string
Gets the request URI.

Properties

$parameters

protected mixed $parameters

Methods

__construct()

public __construct(string $uri, string $method[, array<string|int, mixed> $parameters = [] ][, array<string|int, mixed> $files = [] ][, array<string|int, mixed> $cookies = [] ][, array<string|int, mixed> $server = [] ][, string $content = null ]) : mixed
Parameters
$uri : string

The request URI

$method : string

The HTTP method request

$parameters : array<string|int, mixed> = []

The request parameters

$files : array<string|int, mixed> = []

An array of uploaded files

$cookies : array<string|int, mixed> = []

An array of cookies

$server : array<string|int, mixed> = []

An array of server parameters

$content : string = null

The raw body data

getContent()

Gets the request raw body data.

public getContent() : string|null
Return values
string|null

The request raw body data

getCookies()

Gets the request cookies.

public getCookies() : array<string|int, mixed>
Return values
array<string|int, mixed>

The request cookies

getFiles()

Gets the request server files.

public getFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>

The request files

getMethod()

Gets the request HTTP method.

public getMethod() : string
Return values
string

The request HTTP method

getParameters()

Gets the request parameters.

public getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>

The request parameters

getServer()

Gets the request server parameters.

public getServer() : array<string|int, mixed>
Return values
array<string|int, mixed>

The request server parameters

getUri()

Gets the request URI.

public getUri() : string
Return values
string

The request URI


        
On this page

Search results