Property | Type | Description | |
---|---|---|---|
$_COOKIE | |||
$_GET | |||
$_POST | |||
$_REQUEST | |||
$_SERVER | |||
$controller | Ip\controller | ||
$routePath |
Method | Description | |
---|---|---|
__construct ( ) | ||
_isWebsiteRoot ( ) : boolean | ||
_setRoutePath ( $routePath ) | ||
getMethod ( ) : string | Get request method, such as 'GET', 'HEAD', 'POST', or 'PUT' | |
getPost ( string $name = null, mixed $default = null ) : mixed | Returns POST parameter if $name is passed. Returns all query parameters if name == null. | |
getQuery ( string $name = null, mixed $default = null ) : mixed | Return GET query parameter if $name is passed. Returns all query parameters if name == null. | |
getRelativePath ( ) : string | Gets relative path from base URL | |
getRequest ( string $name = null, mixed $default = null ) : mixed | Return request parameter if $name is passed. Returns all request parameters if $name == null. | |
getRoutePath ( ) | ||
getServer ( string $name = null, string $default = null ) : mixed | Return parameters, such as headers, paths, and script locations, provided in $_SERVER array | |
getUrl ( ) : string | Get current page URL | |
isAjax ( ) | ||
isGet ( ) : boolean | Check if HTTP request data is provided using GET method | |
isHttps ( ) : boolean | Check if HTTPS protocol is used | |
isPost ( ) : boolean | Check if HTTP request data is provided using POST method | |
mustBePost ( ) | Require to provide HTTP request data using POST method | |
setPost ( $post ) | Set post variables | |
setQuery ( $query ) | Set GET query | |
setRequest ( $request ) | Set request data | |
setServer ( $server ) | Set server data |
Method | Description | |
---|---|---|
getParam ( $name, $values, $default ) |
public _isWebsiteRoot ( ) : boolean | ||
return | boolean | true if current url is pointing to website root or one of the languages |
public getRelativePath ( ) : string | ||
return | string | Path after BASE_URL |
public mustBePost ( ) |