SmsManager::getEditorConfig

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. SmsManager
  4. getEditorConfig
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/smsmanager.php
  • Класс: Bitrix\Crm\Integration\SmsManager
  • Вызов: SmsManager::getEditorConfig
static function getEditorConfig($entityTypeId, $entityId)
{
	$entityTypeId = (int)$entityTypeId;
	$entityId = (int)$entityId;
	$result = array(
		'canUse' => static::canUse(),
		'canSendMessage' => static::canSendMessage(),
		'manageUrl' => static::getManageUrl(),
		'senders' => static::getSenderInfoList(true),
		'defaults' => static::getEditorDefaults(),
		'communications' => array()
	);

	if ($entityId > 0)
	{
		$result['communications'] = static::getEntityPhoneCommunications($entityTypeId, $entityId);
	}

	return $result;
}

Добавить комментарий