Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
segmentdatabuilderjob.php
1<?php
10
12
18{
26 public static function addEventAgent(int $groupStateId)
27 {
29 static::getAgentName((int)$groupStateId),
30 10,
31 (new DateTime())->add('+10 seconds')
32 );
33 }
34
42 public static function removeAgentFromDB(int $groupStateId)
43 {
45 static::getAgentName((int)$groupStateId)
46 );
47 }
48
56 public static function existsInDB(int $groupStateId): bool
57 {
58 return (new SegmentDataBuilderJob())->agentExists(
59 static::getAgentName((int)$groupStateId)
60 );
61 }
62
70 public static function getAgentName(int $groupStateId)
71 {
72 return "\Bitrix\Sender\Posting\SegmentDataBuilder::run({$groupStateId});";
73 }
74}
addAgent($agentName, $interval=60, $nextDateExec='')
Definition job.php:50
removeAgent($agentName)
Definition job.php:69