Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
element.php
1<?php
3
8
9class Element extends ElementBase
10{
11 protected $moduleId = "photogallery";
12
13 protected function copySectionElements(int $sectionId, int $copiedSectionId)
14 {
15 if (!Loader::includeModule("photogallery"))
16 {
17 return $this->result;
18 }
19
20 $this->addToQueue($copiedSectionId, "SectionGroupQueue");
21
22 Option::set($this->moduleId, "SectionGroupChecker_".$copiedSectionId, "Y");
23
24 $queueOption = [
25 "sectionId" => $sectionId,
26 "copiedSectionId" => $copiedSectionId,
27 "enumRatio" => ($this->enumRatio[$sectionId] ?: []),
28 "sectionsRatio" => ($this->sectionsRatio[$sectionId] ?: [])
29 ];
30 Option::set($this->moduleId, "SectionGroupStepper_".$copiedSectionId, serialize($queueOption));
31
32 $agent = \CAgent::getList([], [
33 "MODULE_ID" => $this->moduleId,
34 "NAME" => SectionStepper::class."::execAgent();"
35 ])->fetch();
36 if (!$agent)
37 {
38 SectionStepper::bind(1);
39 }
40
41 return $this->result;
42 }
43}
addToQueue(int $copiedSectionId, $queueName)
Definition element.php:129
copySectionElements(int $sectionId, int $copiedSectionId)
Definition element.php:13