IMOpenLineTracker extends ChannelTracker
Table of Contents
Constants
- CHAT_CONNECTOR = 'livechat'
Methods
- __construct() : mixed
- checkConfigurationPermission() : bool
- Check if current user has permission to configure IM Open Lines.
- checkConnectorConfigurationPermission() : bool
- Check if current user has permission to configure IM Open Lines feature.
- compareConnectorInfoBySort() : int
- Compare connector info by sort field.
- getConnectorCaption() : string
- Get Open Line Connector name
- getConnectorInfos() : array<string|int, mixed>
- Get all active connector info array.
- getConnectorUrl() : string
- Get IM Open Lines feature URL.
- getInstance() : IMOpenLineTracker
- Get manager instance
- getItems() : mixed
- getTypeID() : int
- Get Channel Type ID
- getUrl() : string
- Get IM Open Lines URL.
- initializeUserContext() : void
- Initialize tracker for using by user.
- isConnectorEnabled() : bool
- Check if IM Open Lines connector is enabled
- isConnectorInUse() : bool
- Check if IM Open Lines connector in use
- isEnabled() : bool
- Check if IM Open Lines enabled.
- isInUse() : bool
- Check if channel is in use.
- prepareCaption() : string
- Prepare channel caption
- prepareChannelGroupInfos() : array<string|int, IChannelGroupInfo>
- Create channel group info items.
- prepareChannelInfos() : array<string|int, IChannelInfo>
- Create channel info items.
- registerActivity() : void
- Register binding to the channel for specified Activity.
- registerDeal() : void
- Register binding to the channel for specified Deal.
- registerInstance() : mixed
- Add instance of this manager to collection
- registerLead() : void
- Register binding to the channel for specified Lead.
- unregisterActivity() : void
- Unregister binding to the channel for specified Activity.
- unregisterDeal() : void
- Unregister binding to the channel for specified Deal.
- unregisterLead() : void
- Unregister binding to the channel for specified Lead.
Constants
CHAT_CONNECTOR
public
mixed
CHAT_CONNECTOR
= 'livechat'
Methods
__construct()
public
__construct() : mixed
checkConfigurationPermission()
Check if current user has permission to configure IM Open Lines.
public
checkConfigurationPermission([array<string|int, mixed> $params = null ]) : bool
Parameters
- $params : array<string|int, mixed> = null
-
Array of channel parameters.
Return values
boolcheckConnectorConfigurationPermission()
Check if current user has permission to configure IM Open Lines feature.
public
checkConnectorConfigurationPermission(string $connectorID) : bool
Parameters
- $connectorID : string
-
Connector ID.
Return values
boolcompareConnectorInfoBySort()
Compare connector info by sort field.
public
static compareConnectorInfoBySort(array<string|int, mixed> $a, array<string|int, mixed> $b) : int
Parameters
- $a : array<string|int, mixed>
-
First connector info.
- $b : array<string|int, mixed>
-
Second connector info.
Return values
intgetConnectorCaption()
Get Open Line Connector name
public
getConnectorCaption(string $connectorID) : string
Parameters
- $connectorID : string
-
Connector ID.
Return values
stringgetConnectorInfos()
Get all active connector info array.
public
getConnectorInfos() : array<string|int, mixed>
Return values
array<string|int, mixed>getConnectorUrl()
Get IM Open Lines feature URL.
public
getConnectorUrl(string $connectorID) : string
Parameters
- $connectorID : string
-
Connector ID.
Tags
Return values
stringgetInstance()
Get manager instance
public
static getInstance() : IMOpenLineTracker
Return values
IMOpenLineTrackergetItems()
public
getItems() : mixed
getTypeID()
Get Channel Type ID
public
getTypeID() : int
Return values
intgetUrl()
Get IM Open Lines URL.
public
getUrl([array<string|int, mixed> $params = null ]) : string
Parameters
- $params : array<string|int, mixed> = null
-
Array of channel parameters
Return values
stringinitializeUserContext()
Initialize tracker for using by user.
public
initializeUserContext() : void
isConnectorEnabled()
Check if IM Open Lines connector is enabled
public
isConnectorEnabled(string $connectorID) : bool
Parameters
- $connectorID : string
-
Connector ID.
Return values
boolisConnectorInUse()
Check if IM Open Lines connector in use
public
isConnectorInUse(string $connectorID[, int $lineID = 0 ]) : bool
Parameters
- $connectorID : string
-
Connector ID.
- $lineID : int = 0
-
Line ID.
Return values
boolisEnabled()
Check if IM Open Lines enabled.
public
isEnabled() : bool
Return values
boolisInUse()
Check if channel is in use.
public
isInUse([array<string|int, mixed> $params = null ]) : bool
Parameters
- $params : array<string|int, mixed> = null
-
Array of channel parameters.
Return values
boolprepareCaption()
Prepare channel caption
public
prepareCaption([array<string|int, mixed>|null $params = null ]) : string
Parameters
- $params : array<string|int, mixed>|null = null
-
Array of channel parameters.
Return values
stringprepareChannelGroupInfos()
Create channel group info items.
public
prepareChannelGroupInfos() : array<string|int, IChannelGroupInfo>
Return values
array<string|int, IChannelGroupInfo>prepareChannelInfos()
Create channel info items.
public
prepareChannelInfos() : array<string|int, IChannelInfo>
Return values
array<string|int, IChannelInfo>registerActivity()
Register binding to the channel for specified Activity.
public
registerActivity(int $ID[, array<string|int, mixed> $params = null ]) : void
Parameters
- $ID : int
-
Activity ID.
- $params : array<string|int, mixed> = null
-
Array of binding parameters. For example ORIGIN_ID and COMPONENT_ID.
Tags
registerDeal()
Register binding to the channel for specified Deal.
public
registerDeal(int $ID[, array<string|int, mixed> $params = null ]) : void
Parameters
- $ID : int
-
Deal ID.
- $params : array<string|int, mixed> = null
-
Array of binding parameters. For example ORIGIN_ID and COMPONENT_ID.
Tags
registerInstance()
Add instance of this manager to collection
public
static registerInstance(array<string|int, mixed> &$instances) : mixed
Parameters
- $instances : array<string|int, mixed>
-
Destination collection.
registerLead()
Register binding to the channel for specified Lead.
public
registerLead(int $ID[, array<string|int, mixed> $params = null ]) : void
Parameters
- $ID : int
-
Lead ID.
- $params : array<string|int, mixed> = null
-
Array of binding parameters. For example ORIGIN_ID and COMPONENT_ID.
Tags
unregisterActivity()
Unregister binding to the channel for specified Activity.
public
unregisterActivity(int $ID) : void
Parameters
- $ID : int
-
Activity ID.
unregisterDeal()
Unregister binding to the channel for specified Deal.
public
unregisterDeal(int $ID) : void
Parameters
- $ID : int
-
Deal ID.
unregisterLead()
Unregister binding to the channel for specified Lead.
public
unregisterLead(int $ID) : void
Parameters
- $ID : int
-
Lead ID.