Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
timelinejob.php
1
<?php
9
namespace
Bitrix\Sender\Runtime
;
10
11
use
Bitrix\Main\Type\DateTime
;
12
17
class
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
}
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Sender\Runtime\Job
Definition
job.php:16
Bitrix\Sender\Runtime\Job\addAgent
addAgent($agentName, $interval=60, $nextDateExec='')
Definition
job.php:50
Bitrix\Sender\Runtime\TimeLineJob
Definition
timelinejob.php:18
Bitrix\Sender\Runtime\TimeLineJob\$letterId
$letterId
Definition
timelinejob.php:20
Bitrix\Sender\Runtime\TimeLineJob\getAgentName
static getAgentName($letterId)
Definition
timelinejob.php:44
Bitrix\Sender\Runtime\TimeLineJob\$campaignId
$campaignId
Definition
timelinejob.php:23
Bitrix\Sender\Runtime\TimeLineJob\addEventAgent
static addEventAgent($letterId)
Definition
timelinejob.php:31
Bitrix\Sender\Runtime
Definition
env.php:9
modules
sender
lib
runtime
timelinejob.php
Создано системой
1.10.0