51 if ($this->copyMode == self::SECTION_COPY_MODE)
57 return $this->copyIblockElements($entityId, $copiedEntityId);
70 $this->
addToQueue($copiedSectionId,
"SectionGroupQueue");
72 Option::set($this->moduleId,
"SectionGroupChecker_".$copiedSectionId,
"Y");
75 "sectionId" => $sectionId,
76 "copiedSectionId" => $copiedSectionId,
77 "enumRatio" => ($this->enumRatio[$sectionId] ?: []),
78 "sectionsRatio" => ($this->sectionsRatio[$sectionId] ?: [])
80 Option::set($this->moduleId,
"SectionGroupStepper_".$copiedSectionId, serialize($queueOption));
82 $agent = \CAgent::getList([], [
83 "MODULE_ID" => $this->moduleId,
84 "NAME" => SectionStepper::class.
"::execAgent();"
88 SectionStepper::bind(1);
129 protected function addToQueue(
int $copiedSectionId, $queueName)
131 $option = Option::get($this->moduleId, $queueName,
"");
132 $option = ($option !==
"" ? unserialize($option, [
'allowed_classes' =>
false]) : []);
133 $option = (is_array($option) ? $option : []);
135 $option[] = $copiedSectionId;
136 Option::set($this->moduleId, $queueName, serialize($option));