Elgg  Version 1.12
Public Member Functions | Protected Member Functions | List of all members
Elgg\Http\Request Class Reference
Inheritance diagram for Elgg\Http\Request:

Public Member Functions

 initialize (array $query=array(), array $request=array(), array $attributes=array(), array $cookies=array(), array $files=array(), array $server=array(), $content=null)
 
 getUrlSegments ($raw=false)
 Get URL segments from the path info. More...
 
 getFirstUrlSegment ()
 Get first URL segment from the path info. More...
 
 getClientIp ()
 {} More...
 
 isXmlHttpRequest ()
 {} More...
 

Protected Member Functions

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

Detailed Description

Definition at line 41 of file Request.php.

Member Function Documentation

Elgg\Http\Request::getClientIp ( )

{}

Definition at line 109 of file Request.php.

Elgg\Http\Request::getFirstUrlSegment ( )

Get first URL segment from the path info.

See also
::getUrlSegments()
Returns
string

Definition at line 97 of file Request.php.

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

Get URL segments from the path info.

See also
::getPathInfo()
Parameters
bool$rawIf true, the segments will not be HTML escaped
Returns
string[]

Definition at line 78 of file Request.php.

Elgg\Http\Request::initialize ( array  $query = array(),
array  $request = array(),
array  $attributes = array(),
array  $cookies = array(),
array  $files = array(),
array  $server = array(),
  $content = null 
)

Definition at line 46 of file Request.php.

Elgg\Http\Request::isXmlHttpRequest ( )

{}

Definition at line 127 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 140 of file Request.php.


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