Agent extends ClassConstant
Class Agent
Table of Contents
Constants
Methods
- detect() : int|null
- Detect agent by user agent string.
- getCode() : string|null
- Get code.
- getCodes() : array<string|int, mixed>
- Get codes.
- getId() : int|null
- Get ID.
- getList() : array<string|int, mixed>
- Get list.
- getName() : int|null
- Get caption.
- getNamedCodes() : array<string|int, mixed>
- Get named list.
- getNamedList() : array<string|int, mixed>
- Get named list.
Constants
ANDROID
public
mixed
ANDROID
= 4
GMAIL
public
mixed
GMAIL
= 1
IPAD
public
mixed
IPAD
= 3
IPHONE
public
mixed
IPHONE
= 2
OUTLOOK
public
mixed
OUTLOOK
= 5
THUNDERBIRD
public
mixed
THUNDERBIRD
= 6
UNDEFINED
public
mixed
UNDEFINED
= 0
YANDEX
public
mixed
YANDEX
= 7
Methods
detect()
Detect agent by user agent string.
public
static detect([string|null $string = null ]) : int|null
Parameters
- $string : string|null = null
-
String.
Return values
int|nullgetCode()
Get code.
public
static getCode(int $id) : string|null
Parameters
- $id : int
-
ID.
Return values
string|nullgetCodes()
Get codes.
public
static getCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
Get ID.
public
static getId(string $code) : int|null
Parameters
- $code : string
-
Code.
Return values
int|nullgetList()
Get list.
public
static getList() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Get caption.
public
static getName(int $id) : int|null
Parameters
- $id : int
-
ID.
Return values
int|nullgetNamedCodes()
Get named list.
public
static getNamedCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>getNamedList()
Get named list.
public
static getNamedList() : array<string|int, mixed>