Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Protected Member Functions | List of all members
Elgg\Http\Request Class Reference

Elgg HTTP request. More...

Inheritance diagram for Elgg\Http\Request:

Public Member Functions

 getUrlSegments ($raw=false)
 Get the Elgg URL segments. More...
 
 setUrlSegments (array $segments)
 Get a cloned request with new Elgg URL segments. More...
 
 getFirstUrlSegment ()
 Get first Elgg URL segment. More...
 
 getClientIp ()
 {} More...
 
 isXmlHttpRequest ()
 {} More...
 

Protected Member Functions

 stripSlashesIfMagicQuotes ($data)
 Strip slashes if magic quotes is on. More...
 

Detailed Description

Elgg HTTP request.

private

Definition at line 12 of file Request.php.

Member Function Documentation

Elgg\Http\Request::getClientIp ( )

{}

Definition at line 65 of file Request.php.

Elgg\Http\Request::getFirstUrlSegment ( )

Get first Elgg URL segment.

See Also
::getUrlSegments()
Returns
string

Definition at line 53 of file Request.php.

Elgg\Http\Request::getUrlSegments (   $raw = false)

Get the Elgg URL segments.

Parameters
bool$rawIf true, the segments will not be HTML escaped
Returns
string[]

Definition at line 21 of file Request.php.

Elgg\Http\Request::isXmlHttpRequest ( )

{}

Definition at line 83 of file Request.php.

Elgg\Http\Request::setUrlSegments ( array  $segments)

Get a cloned request with new Elgg URL segments.

Parameters
string[]$segments URL segments
Returns
Request

Definition at line 40 of file Request.php.

Elgg\Http\Request::stripSlashesIfMagicQuotes (   $data)
protected

Strip slashes if magic quotes is on.

Parameters
mixed$dataData to strip slashes from
Returns
mixed

Definition at line 96 of file Request.php.


The documentation for this class was generated from the following file: