Méthode |
Description |
|
env ( string $key = null, mixed $value = null ) : mixed |
Get a value from $_ENV param for the given $key. |
|
files ( string $name, null | integer $arrayOffset = null ) : File |
Get the File object for the given $name. |
|
getClientIp ( ) : string |
Get client ip address. |
|
getConnectionPort ( ) : integer |
Return the connection port number. |
|
getCurrentUrl ( boolean $asUrlObject = false ) : string | UrlObject |
Get current url with schema, host, port, request uri and query string. |
|
getHostName ( ) : string |
Returns the host name. |
|
getPayload ( ) : Payload |
Returns an array object with all post parameters. |
|
getPost ( ) : Post |
Returns an array object with all POST parameters. |
|
getQuery ( ) : Query |
Returns an array object with all GET parameters. |
|
getRequestMethod ( ) : string |
Get request method from HTTP headers |
|
getTrustedHeaders ( ) : array |
Get a list of trusted headers. |
|
getTrustedProxies ( ) : array |
Array of IPs from trusted proxies. |
|
header ( string $key = null, mixed $value = null ) : mixed |
Get a value from HTTP Headers
If key doesn't not exist, $value will be returned and assigned under that key. |
|
isDelete ( ) : boolean |
Checks if current request method is DELETE. |
|
isGet ( ) : boolean |
Checks if current request method is GET. |
|
isPatch ( ) : boolean |
Checks if current request method is PATCH. |
|
isPost ( ) : boolean |
Checks if current request method is POST. |
|
isPut ( ) : boolean |
Checks if current request method is PUT. |
|
isRequestSecured ( ) : boolean |
Check if connection is secured. |
|
payload ( string $key = null, mixed $value = null ) : mixed |
Get a value from request payload param for the given $key. |
|
post ( string $key = null, mixed $value = null ) : mixed |
Get a value from $_POST param for the given $key. |
|
query ( string $key = null, mixed $value = null ) : mixed |
Get a value from $_GET param for the given $key. |
|
server ( ) : Server |
Access to the $_SERVER parameter over a object wrapper. |
|
setCurrentUrl ( string $url ) |
This method sets the internal value of currentUrl to $url. |
|
setRequestMethod ( string $requestMethod ) |
Set the request method. |
|