Bitrix API

Agent extends ClassConstant

Class Agent

Table of Contents

Constants

ANDROID  = 4
GMAIL  = 1
IPAD  = 3
IPHONE  = 2
OUTLOOK  = 5
THUNDERBIRD  = 6
UNDEFINED  = 0
YANDEX  = 7

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

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|null

getCode()

Get code.

public static getCode(int $id) : string|null
Parameters
$id : int

ID.

Return values
string|null

getCodes()

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|null

getList()

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|null

getNamedCodes()

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>
Return values
array<string|int, mixed>

        
On this page

Search results