Library
Class

Library\Helper\Request

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

Return Value

bool TRUE if it is so ...

at line 55
static public bool isAjax()

Check if the request is sent via AJAX

Return Value

bool TRUE if it is so ...

at line 66
static public string getUserIp()

Get the IP address of request device

Return Value

string The IP address if found