• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/timeline/dealcontroller.php
  • Класс: Bitrix\Crm\Timeline\DealController
  • Вызов: DealController::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::Deal, 0);
		\CPullWatch::AddToStack(
			$tag,
			array(
				'module_id' => 'crm',
				'command' => self::REMOVE_EVENT_NAME,
				'params' => $pushParams,
			)
		);
	}
}