PHP Class Elgg\Http\Request

Inheritance: extends Symfony\Component\HttpFoundation\Request
Show file Open project: elgg/elgg Class Usage Examples

Public Methods

Method Description
getClientIp ( )
getFirstUrlSegment ( ) : string Get first Elgg URL segment
getUrlSegments ( boolean $raw = false ) : string[] Get the Elgg URL segments
isXmlHttpRequest ( )
setUrlSegments ( array $segments ) : Request Get a cloned request with new Elgg URL segments

Method Details

getClientIp() public method

public getClientIp ( )

getFirstUrlSegment() public method

Get first Elgg URL segment
See also: Elgg\Http\Request::getUrlSegments()
public getFirstUrlSegment ( ) : string
return string

getUrlSegments() public method

Get the Elgg URL segments
public getUrlSegments ( boolean $raw = false ) : string[]
$raw boolean If true, the segments will not be HTML escaped
return string[]

isXmlHttpRequest() public method

public isXmlHttpRequest ( )

setUrlSegments() public method

Get a cloned request with new Elgg URL segments
public setUrlSegments ( array $segments ) : Request
$segments array URL segments
return Request