Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventoriginalrecursion.php
1<?php
2
4
6
8{
9 public function add(int $eventId, int $originalRecursionEventId): void
10 {
11 if ($eventId > 0 && $originalRecursionEventId > 0)
12 {
13 $insertFields = [
14 'PARENT_EVENT_ID' => $eventId,
15 'ORIGINAL_RECURSION_EVENT_ID' => $originalRecursionEventId,
16 ];
17 $updateFields = [
18 'ORIGINAL_RECURSION_EVENT_ID' => $originalRecursionEventId,
19 ];
20
21 EventOriginalRecursionTable::merge($insertFields, $updateFields);
22 }
23 }
24}
add(int $eventId, int $originalRecursionEventId)