Bitrix API

Manager

Class Manager

Table of Contents

Constants

ENUM_TYPE_CALLBACK  = 'callback'
ENUM_TYPE_CRM_FORM  = 'crmform'
ENUM_TYPE_OPEN_LINE  = 'openline'
ENUM_TYPE_WHATSAPP  = 'whatsapp'

Methods

canRemoveCopyright()  : bool
Can remove copyright
canUseCallback()  : mixed
canUseCrmForm()  : mixed
canUseMultiLines()  : bool
Can use multi lines.
canUseOpenLine()  : mixed
checkReadPermission()  : bool
Check read permissions
checkWritePermission()  : bool
Check write permissions
getAvatars()  : array<string|int, mixed>
Returns avatars file list
getLanguages()  : array<string|int, mixed>
Returns language list
getList()  : mixed
getListNames()  : array<string|int, mixed>
Get list form names list.
getListPlain()  : array<string|int, mixed>
Get plain button list.
getTypeList()  : mixed
getUrl()  : string
Get path to button list page
getWidgetByTypeId()  : mixed
getWidgetList()  : mixed
getWidgetsByOpenlineId()  : array<string|int, mixed>
isCallbackInUse()  : bool
Is button with callback in use
isInUse()  : bool
Is button in use
onAfterImopenlineActiveChange()  : void
Event handler for openline activation/deactivation
onBitrix24LicenseChange()  : void
Event handler of changing licence
onImConnectorChange()  : mixed
onImopenlineDelete()  : void
Event handler for openline deletion
updateScriptCache()  : mixed
updateScriptCacheAgent()  : mixed
updateScriptCacheWithForm()  : mixed
updateScriptCacheWithLineId()  : void
Updates widget script cache for the open line with the given id and activity flag.

Constants

ENUM_TYPE_CALLBACK

public mixed ENUM_TYPE_CALLBACK = 'callback'

ENUM_TYPE_CRM_FORM

public mixed ENUM_TYPE_CRM_FORM = 'crmform'

ENUM_TYPE_OPEN_LINE

public mixed ENUM_TYPE_OPEN_LINE = 'openline'

ENUM_TYPE_WHATSAPP

public mixed ENUM_TYPE_WHATSAPP = 'whatsapp'

Methods

canRemoveCopyright()

Can remove copyright

public static canRemoveCopyright() : bool
Return values
bool

canUseCallback()

public static canUseCallback() : mixed

canUseCrmForm()

public static canUseCrmForm() : mixed

canUseMultiLines()

Can use multi lines.

public static canUseMultiLines() : bool
Return values
bool

canUseOpenLine()

public static canUseOpenLine() : mixed

checkReadPermission()

Check read permissions

public static checkReadPermission([null|CCrmAuthorizationHelper $userPermissions = null ]) : bool
Parameters
$userPermissions : null|CCrmAuthorizationHelper = null

User permissions.

Return values
bool

checkWritePermission()

Check write permissions

public static checkWritePermission([null|CCrmAuthorizationHelper $userPermissions = null ]) : bool
Parameters
$userPermissions : null|CCrmAuthorizationHelper = null

User permissions.

Return values
bool

getAvatars()

Returns avatars file list

public static getAvatars() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLanguages()

Returns language list

public static getLanguages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getList()

public static getList([mixed $params = array('order' => array('ID' => 'DESC'), 'cache' => array('ttl' => 36000)) ]) : mixed
Parameters
$params : mixed = array('order' => array('ID' => 'DESC'), 'cache' => array('ttl' => 36000))

getListNames()

Get list form names list.

public static getListNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

getListPlain()

Get plain button list.

public static getListPlain() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTypeList()

public static getTypeList() : mixed

getUrl()

Get path to button list page

public static getUrl() : string
Return values
string

getWidgetByTypeId()

public static getWidgetByTypeId(mixed $typeId) : mixed
Parameters
$typeId : mixed

getWidgetList()

public static getWidgetList() : mixed

getWidgetsByOpenlineId()

public static getWidgetsByOpenlineId(int $lineId) : array<string|int, mixed>
Parameters
$lineId : int
Return values
array<string|int, mixed>

isCallbackInUse()

Is button with callback in use

public static isCallbackInUse() : bool
Return values
bool

isInUse()

Is button in use

public static isInUse() : bool
Return values
bool

onAfterImopenlineActiveChange()

Event handler for openline activation/deactivation

public static onAfterImopenlineActiveChange(Event $eventData) : void
Parameters
$eventData : Event
Tags
throws
Exception

onBitrix24LicenseChange()

Event handler of changing licence

public static onBitrix24LicenseChange(mixed $licenseType) : void
Parameters
$licenseType : mixed

onImConnectorChange()

public static onImConnectorChange() : mixed

onImopenlineDelete()

Event handler for openline deletion

public static onImopenlineDelete(Event $eventData) : void
Parameters
$eventData : Event
Tags
throws
Exception

updateScriptCache()

public static updateScriptCache([mixed $fromButtonId = null ]) : mixed
Parameters
$fromButtonId : mixed = null

updateScriptCacheAgent()

public static updateScriptCacheAgent([mixed $fromButtonId = null ]) : mixed
Parameters
$fromButtonId : mixed = null

updateScriptCacheWithForm()

public static updateScriptCacheWithForm(mixed $formId) : mixed
Parameters
$formId : mixed

updateScriptCacheWithLineId()

Updates widget script cache for the open line with the given id and activity flag.

public static updateScriptCacheWithLineId(int $lineId, bool $active) : void
Parameters
$lineId : int

Id of the open line.

$active : bool

Is line active.

Tags
throws
Exception

        
On this page

Search results