Bitrix API

LeadChannelBinding

Class LeadChannelBinding Managing of Lead bindings to external channels.

Table of Contents

Methods

exists()  : bool
Check if specified Lead has bindings to channel.
getAll()  : array<string|int, mixed>
Get all bindings to channels for specified Lead.
register()  : void
Register binding to the channel for specified Lead.
synchronize()  : mixed
Synchronize Lead statistics.
unregister()  : void
Unregister binding to the channel for specified Lead.
unregisterAll()  : void
Unregister bindings to all channels for specified Lead.

Methods

exists()

Check if specified Lead has bindings to channel.

public static exists(int $ID) : bool
Parameters
$ID : int

Lead ID.

Tags
throws
ArgumentException
Return values
bool

getAll()

Get all bindings to channels for specified Lead.

public static getAll(int $ID) : array<string|int, mixed>
Parameters
$ID : int

Lead ID.

Tags
throws
ArgumentException
Return values
array<string|int, mixed>

register()

Register binding to the channel for specified Lead.

public static register(int $ID, ChannelType $typeID[, array<string|int, mixed> $params = null ]) : void
Parameters
$ID : int

Lead ID.

$typeID : ChannelType

Channel Type ID.

$params : array<string|int, mixed> = null

Array of binding parameters. For example ORIGIN_ID and COMPONENT_ID.

Tags
throws
ArgumentException

synchronize()

Synchronize Lead statistics.

public static synchronize(int $ID, array<string|int, mixed> $fields) : mixed
Parameters
$ID : int

Lead ID

$fields : array<string|int, mixed>

Lead Fields

Tags
throws
ArgumentException

unregister()

Unregister binding to the channel for specified Lead.

public static unregister(int $ID, ChannelType $typeID) : void
Parameters
$ID : int

Lead ID.

$typeID : ChannelType

Channel Type ID.

Tags
throws
ArgumentException

unregisterAll()

Unregister bindings to all channels for specified Lead.

public static unregisterAll(int $ID) : void
Parameters
$ID : int

Lead ID.

Tags
throws
ArgumentException

        
On this page

Search results