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