18 $params = $param->getParams();
20 $this->checkPermission($param, IblockRight::EDIT);
26 $manager =
new Manager($params[
"IBLOCK_TYPE_ID"], [$params[
"IBLOCK_ID"]], $params[
"SOCNET_GROUP_ID"]);
28 $manager->setIblockImplementer(
new IblockImplementer());
29 $manager->setFieldImplementer(
new Field());
32 "LIST_ELEMENT_URL" => ($params[
"LIST_ELEMENT_URL"] ? $params[
"LIST_ELEMENT_URL"] :
"")
34 $manager->setDictionary($dictionary);
36 $result = $manager->startCopy();
38 if ($result->getErrors())
44 $mapIdsCopiedIblock = $manager->getMapIdsCopiedEntity();
46 if (array_key_exists($params[
"IBLOCK_ID"], $mapIdsCopiedIblock))
48 return $mapIdsCopiedIblock[$params[
"IBLOCK_ID"]];