Return the name of the browser icon based on User Agent
Arguments
Name
Type
Description
Default
$agent
n/a
$return
n/a
icon
Return value
Type
Description
string
Tags
Name
Description
access
public
static
getDevice(
)
:
Zend_Http_UserAgent_...
Description
Get HTTP UserAgent Device.
Device may be Bot, Checker, Console, Desktop, Email, Feed, Mobile, Offline, Probe, Spam, Text, Validator
If device is mobile, return will be Zend_Http_UserAgent_Mobile
Return value
Type
Description
Zend_Http_UserAgent_...
getOsIcon(
$agent,
)
:
array
Description
Return the name of the OS icon based on User Agent
Arguments
Name
Type
Description
Default
$agent
n/a
Return value
Type
Description
array
Tags
Name
Description
access
public
static
getUserIp(
)
:
string
Description
Return the user Ip, even if it is behind a proxy
Return value
Type
Description
string
Tags
Name
Description
access
public
static
initialize(
$startTime,
)
:
n/a
Description
Initialize the global variables
Arguments
Name
Type
Description
Default
$startTime
n/a
Return value
Type
Description
n/a
n/a
pageNotFound(
string
$who,
)
:
bool
Description
End the execution of the application,
by sending an 404 header and redirecting to home page
Check if IP is valid. Return FALSE | 'private' | 'public'
FALSE - $ip is not a valid IP address
private - $ip is a private network IP address, loopback address or an IPv6 IP address
public - $ip is a public network IP address