Type
Class Type
Table of Contents
Constants
- BITRIX24 = 7
- BITRIX24_NAME = 'BITRIX24'
- EMAIL = 2
- EMAIL_NAME = 'EMAIL'
- FACEBOOK = 3
- FACEBOOK_NAME = 'FACEBOOK'
- IMOL = 10
- IMOL_NAME = 'IMOL'
- OPENLINE = 8
- OPENLINE_NAME = 'OPENLINE'
- PHONE = 1
- PHONE_NAME = 'PHONE'
- SKYPE = 6
- SKYPE_NAME = 'SKYPE'
- SLUSER = 10
- SLUSER_NAME = 'SLUSER'
- TELEGRAM = 4
- TELEGRAM_NAME = 'TELEGRAM'
- UNDEFINED = 0
- VIBER = 9
- VIBER_NAME = 'VIBER'
- VK = 5
- VK_NAME = 'VK'
Methods
- detect() : int|null
- Detect type by communication code.
- getAllNames() : array<string|int, mixed>
- Get all names.
- getCaption() : string|null
- Get caption.
- getMultiFieldTypeIDs() : array<string|int, mixed>
- Get related Multifield type IDs
- isDefined() : bool
- Check if specified type ID is defined.
- resolveID() : int
- Try to resolve type ID by name.
- resolveName() : string
- Try to resolve type name by ID.
Constants
BITRIX24
public
mixed
BITRIX24
= 7
BITRIX24_NAME
public
mixed
BITRIX24_NAME
= 'BITRIX24'
public
mixed
EMAIL
= 2
EMAIL_NAME
public
mixed
EMAIL_NAME
= 'EMAIL'
public
mixed
FACEBOOK
= 3
FACEBOOK_NAME
public
mixed
FACEBOOK_NAME
= 'FACEBOOK'
IMOL
public
mixed
IMOL
= 10
IMOL_NAME
public
mixed
IMOL_NAME
= 'IMOL'
OPENLINE
public
mixed
OPENLINE
= 8
OPENLINE_NAME
public
mixed
OPENLINE_NAME
= 'OPENLINE'
PHONE
public
mixed
PHONE
= 1
PHONE_NAME
public
mixed
PHONE_NAME
= 'PHONE'
SKYPE
public
mixed
SKYPE
= 6
SKYPE_NAME
public
mixed
SKYPE_NAME
= 'SKYPE'
SLUSER
public
mixed
SLUSER
= 10
SLUSER_NAME
public
mixed
SLUSER_NAME
= 'SLUSER'
TELEGRAM
public
mixed
TELEGRAM
= 4
TELEGRAM_NAME
public
mixed
TELEGRAM_NAME
= 'TELEGRAM'
UNDEFINED
public
mixed
UNDEFINED
= 0
VIBER
public
mixed
VIBER
= 9
VIBER_NAME
public
mixed
VIBER_NAME
= 'VIBER'
VK
public
mixed
VK
= 5
VK_NAME
public
mixed
VK_NAME
= 'VK'
Methods
detect()
Detect type by communication code.
public
static detect(string $code[, bool $isNormalized = false ]) : int|null
Parameters
- $code : string
-
Communication code.
- $isNormalized : bool = false
-
Is code normalized.
Return values
int|nullgetAllNames()
Get all names.
public
static getAllNames() : array<string|int, mixed>
Return values
array<string|int, mixed>getCaption()
Get caption.
public
static getCaption(int $id) : string|null
Parameters
- $id : int
-
ID.
Return values
string|nullgetMultiFieldTypeIDs()
Get related Multifield type IDs
public
static getMultiFieldTypeIDs() : array<string|int, mixed>
Return values
array<string|int, mixed>isDefined()
Check if specified type ID is defined.
public
static isDefined(int $ID) : bool
Parameters
- $ID : int
-
Type ID.
Return values
boolresolveID()
Try to resolve type ID by name.
public
static resolveID(string $name) : int
Parameters
- $name : string
-
Type name.
Return values
intresolveName()
Try to resolve type name by ID.
public
static resolveName(int $ID) : string
Parameters
- $ID : int
-
Type ID.