Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
timelinejob.php
1<?php
10
12
17class TimeLineJob extends Job
18{
20 protected $letterId;
21
23 protected $campaignId;
24
25
26
31 public static function addEventAgent($letterId)
32 {
33 (new TimeLineJob())->addAgent(
34 static::getAgentName($letterId),
35 120,
36 (new DateTime())->add('+2 minutes')
37 );
38 }
39
44 public static function getAgentName($letterId)
45 {
46 return "\Bitrix\Sender\Integration\Crm\EventHandler::handleTimelineEvents($letterId);";
47 }
48}
addAgent($agentName, $interval=60, $nextDateExec='')
Definition job.php:50