Documentation

Horde_Controller_Request_Mock extends Horde_Controller_Request_Http
in package

Tags
author

Gunnar Wrobel wrobel@pardus.de

category

Horde

copyright

2008-2017 Horde LLC

license

http://www.horde.org/licenses/bsd BSD

Table of Contents

$_headers  : array<string|int, mixed>
All the headers
$_path  : string
Request path
$_vars  : array<string|int, mixed>
Request variables.
__construct()  : mixed
Constructor.
getCookieVars()  : mixed
getFileVars()  : mixed
getGetVars()  : mixed
getHeader()  : string
Gets the value of header.
getHeaderNames()  : array<string|int, mixed>
Gets all the header names.
getHeaders()  : array<string|int, mixed>
Gets all the headers.
getMethod()  : mixed
getPath()  : mixed
getPostVars()  : mixed
getRequestBody()  : mixed
The request body if it is not form-encoded
getRequestVars()  : mixed
getServerVars()  : mixed
getSessionId()  : mixed
setPath()  : mixed
setVars()  : mixed
Set the request variables GET, POST, COOKIE, SERVER, REQUEST etc.
getVars()  : mixed
Gets the request variables GET, POST, COOKIE, SERVER, REQUEST etc.
_getAllHeaders()  : array<string|int, mixed>
Returns all HTTP_* headers.

Properties

$_headers

All the headers

protected array<string|int, mixed> $_headers = \null

$_path

Request path

protected string $_path

$_vars

Request variables.

protected array<string|int, mixed> $_vars

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $vars = array() ]) : mixed
Parameters
$vars : array<string|int, mixed> = array()

The request variables.

Return values
mixed

getCookieVars()

public getCookieVars() : mixed
Return values
mixed

getFileVars()

public getFileVars() : mixed
Return values
mixed

getGetVars()

public getGetVars() : mixed
Return values
mixed

getHeader()

Gets the value of header.

public getHeader(string $name) : string

Returns the value of the specified request header.

Parameters
$name : string

the name of the header

Return values
string

the value of the specified header

getHeaderNames()

Gets all the header names.

public getHeaderNames() : array<string|int, mixed>

Returns an array of all the header names this request contains.

Return values
array<string|int, mixed>

all the available headers as strings

getHeaders()

Gets all the headers.

public getHeaders() : array<string|int, mixed>

Returns an associative array of all the header names and values of this request.

Return values
array<string|int, mixed>

containing all the headers

getMethod()

public getMethod() : mixed
Return values
mixed

getPath()

public getPath() : mixed
Return values
mixed

getPostVars()

public getPostVars() : mixed
Return values
mixed

getRequestBody()

The request body if it is not form-encoded

public getRequestBody() : mixed
Tags
returns

Horde_Stream

Return values
mixed

getRequestVars()

public getRequestVars() : mixed
Return values
mixed

getServerVars()

public getServerVars() : mixed
Return values
mixed

getSessionId()

public getSessionId() : mixed
Return values
mixed

setPath()

public setPath(mixed $path) : mixed
Parameters
$path : mixed
Return values
mixed

setVars()

Set the request variables GET, POST, COOKIE, SERVER, REQUEST etc.

public setVars(array<string|int, mixed> $vars) : mixed
Parameters
$vars : array<string|int, mixed>

The request variables.

Return values
mixed

getVars()

Gets the request variables GET, POST, COOKIE, SERVER, REQUEST etc.

protected getVars(string $name) : mixed
Parameters
$name : string

The name of the superglobal whose vars to return

Return values
mixed

_getAllHeaders()

Returns all HTTP_* headers.

private _getAllHeaders() : array<string|int, mixed>

Returns all the HTTP_* headers. Works both if PHP is an apache module and if it's running as a CGI.

Return values
array<string|int, mixed>

the headers' names and values

Search results