PHP Class Elgg\Http\Request

Inheritance: extends Symfony\Component\HttpFoundation\Request
Afficher le fichier Open project: elgg/elgg Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public getClientIp ( )

getFirstUrlSegment() public méthode

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

getUrlSegments() public méthode

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

isXmlHttpRequest() public méthode

public isXmlHttpRequest ( )

setUrlSegments() public méthode

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