- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/timeline/contactcontroller.php
- Класс: Bitrix\Crm\Timeline\ContactController
- Вызов: ContactController::onDelete
public function onDelete($ownerID, array $params)
{
if(!is_int($ownerID))
{
$ownerID = (int)$ownerID;
}
if($ownerID <= 0)
{
throw new Main\ArgumentException('Owner ID must be greater than zero.', 'ownerID');
}
if(Main\Loader::includeModule('pull'))
{
$pushParams = array('ID' => $ownerID);
$tag = $pushParams['TAG'] = TimelineEntry::prepareEntityPushTag(\CCrmOwnerType::Contact, 0);
\CPullWatch::AddToStack(
$tag,
array(
'module_id' => 'crm',
'command' => self::REMOVE_EVENT_NAME,
'params' => $pushParams,
)
);
}
}