CCrmTimelineCommentRestProxy::registerEventBindings

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmTimelineCommentRestProxy
  4. registerEventBindings
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmTimelineCommentRestProxy
  • Вызов: CCrmTimelineCommentRestProxy::registerEventBindings
static function registerEventBindings(array &$bindings)
{
	if(!isset($bindings[CRestUtil::EVENTS]))
	{
		$bindings[CRestUtil::EVENTS] = array();
	}

	$callback = ['CCrmTimelineCommentRestProxy', 'processEvent'];

	$bindings[CRestUtil::EVENTS]['onCrmTimelineCommentAdd'] = self::createEventInfo('crm', 'OnAfterCrmTimelineCommentAdd', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmTimelineCommentUpdate'] = self::createEventInfo('crm', 'OnAfterCrmTimelineCommentUpdate', $callback);
	$bindings[CRestUtil::EVENTS]['onCrmTimelineCommentDelete'] = self::createEventInfo('crm', 'OnAfterCrmTimelineCommentDelete', $callback);
}

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