27 public function copy($groupId, $copiedGroupId)
29 if (!Loader::includeModule(
"iblock") || !Loader::includeModule(
"socialnetwork"))
34 $this->addToQueue($copiedGroupId);
36 Option::set(self::MODULE_ID, self::CHECKER_OPTION.$copiedGroupId,
"Y");
38 $sectionName = $this->getSectionName($groupId);
39 $parentSectionId = $this->getParentSectionId($groupId, $sectionName);
40 $newSectionName = $this->getNewSectionName($copiedGroupId);
41 if (!$parentSectionId)
47 "copiedGroupId" => $copiedGroupId,
48 "parentSectionId" => $parentSectionId,
49 "newSectionName" => $newSectionName,
51 Option::set(self::MODULE_ID, self::STEPPER_OPTION.$copiedGroupId, serialize($queueOption));
53 $agent = \CAgent::getList([], [
54 "MODULE_ID" => self::MODULE_ID,
55 "NAME" => GroupStepper::class.
"::execAgent();"
59 GroupStepper::bind(1);