Bitrix API

Type extends ClassConstant

Class Type

Table of Contents

Constants

CRM_COMPANY_ID  = 4
CRM_CONTACT_ID  = 5
CRM_DEAL_PRODUCT_COMPANY_ID  = 8
CRM_DEAL_PRODUCT_CONTACT_ID  = 6
CRM_LEAD_ID  = 10
CRM_ORDER_PRODUCT_COMPANY_ID  = 9
CRM_ORDER_PRODUCT_CONTACT_ID  = 7
EMAIL  = 1
IM  = 3
PHONE  = 2

Methods

detect()  : int|null
Detect type by recipient code.
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

CRM_COMPANY_ID

public mixed CRM_COMPANY_ID = 4

CRM_CONTACT_ID

public mixed CRM_CONTACT_ID = 5

CRM_DEAL_PRODUCT_COMPANY_ID

public mixed CRM_DEAL_PRODUCT_COMPANY_ID = 8

CRM_DEAL_PRODUCT_CONTACT_ID

public mixed CRM_DEAL_PRODUCT_CONTACT_ID = 6

CRM_LEAD_ID

public mixed CRM_LEAD_ID = 10

CRM_ORDER_PRODUCT_COMPANY_ID

public mixed CRM_ORDER_PRODUCT_COMPANY_ID = 9

CRM_ORDER_PRODUCT_CONTACT_ID

public mixed CRM_ORDER_PRODUCT_CONTACT_ID = 7

EMAIL

public mixed EMAIL = 1

PHONE

public mixed PHONE = 2

Methods

detect()

Detect type by recipient code.

public static detect(string $recipientCode[, bool $isNormalized = false ]) : int|null
Parameters
$recipientCode : string

Recipient code.

$isNormalized : bool = false

Is code normalized.

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