class Request
Request helper
As for all helpers, all methods are statics.
For convenience, the best practice is to use:
use Library\Helper\Request as RequestHelper;
Methods
static bool |
isCli()
Check if the request is sent by command line interface |
|
static bool |
isAjax()
Check if the request is sent via AJAX |
|
static string |
getUserIp()
Get the IP address of request device |
Details
at line 45
static public bool
isCli()
Check if the request is sent by command line interface
at line 55
static public bool
isAjax()
Check if the request is sent via AJAX
at line 66
static public string
getUserIp()
Get the IP address of request device