use Bluz\Proxy\Request;
Request::getParam('foo');
ファイルを表示
Open project: bluzphp/framework
Class Usage Examples
Method | Description | |
---|---|---|
getAccept ( array $allowTypes = [] ) : string | Get Accept MIME Type | |
getClientIp ( boolean $checkProxy = true ) : string | Get the client's IP address | |
getController ( ) : string | Get controller | |
getCookie ( string $key = null, string $default = null ) : string | Retrieve a member of the $_COOKIE super global | |
getEnv ( string $key = null, string $default = null ) : string | Retrieve a member of the $_ENV super global | |
getFile ( string $name ) : |
Get uploaded file | |
getHeader ( string $header, mixed $default = null ) : string | Search for a header value | |
getMethod ( ) : string | Get method | |
getModule ( ) : string | Get module | |
getParam ( string $key, null $default = null ) : mixed | Access values contained in the superglobals as public members Order of precedence: 1. GET, 2. POST, 3. COOKIE, 4. SERVER, 5. ENV | |
getParams ( ) : array | Get all params from GET and POST or PUT | |
getServer ( string $key = null, string $default = null ) : string | Retrieve a member of the $_SERVER super global | |
isCli ( ) : boolean | Check CLI | |
isDelete ( ) : boolean | Is this a DELETE method request? | |
isGet ( ) : boolean | Is this a GET method request? | |
isHttp ( ) : boolean | Check HTTP | |
isPost ( ) : boolean | Is this a POST method request? | |
isPut ( ) : boolean | Is this a PUT method request? | |
isXmlHttpRequest ( ) : boolean | Is the request a Javascript XMLHttpRequest? |
Method | Description | |
---|---|---|
initInstance ( ) | Init instance |
public static getClientIp ( boolean $checkProxy = true ) : string | ||
$checkProxy | boolean | |
return | string |
public static getController ( ) : string | ||
return | string |
public static isXmlHttpRequest ( ) : boolean | ||
return | boolean |