24 if (!Loader::includeModule(self::$moduleId))
34 if (empty($queueOption))
40 $sectionId = ($queueOption[
"sectionId"] ?: 0);
41 $copiedSectionId = ($queueOption[
"copiedSectionId"] ?: 0);
42 $errorOffset = ($queueOption[
"errorOffset"] ?: 0);
45 $offset = $this->getOffset($copiedSectionId) + $errorOffset;
47 $enumRatio = ($queueOption[
"enumRatio"] ?: []);
48 $sectionsRatio = ($queueOption[
"sectionsRatio"] ?: []);
49 $mapIdsCopiedElements = ($queueOption[
"mapIdsCopiedElements"] ?: []);
53 list($elementIds, $selectedRowsCount) = $this->getElementIds($sectionId, $limit, $offset);
57 $result = $elementCopier->copy($containerCollection);
58 if (!$result->isSuccess())
60 $queueOption[
"errorOffset"] += $this->
getErrorOffset($elementCopier);
63 $mapIdsCopiedElements = $elementCopier->getMapIdsCopiedEntity() + $mapIdsCopiedElements;
64 $queueOption[
"mapIdsCopiedElements"] = $mapIdsCopiedElements;
67 if ($selectedRowsCount < $limit)
74 $option[
"steps"] = $offset;
84 catch (\Exception $exception)