• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/copy/integration/group.php
  • Класс: BitrixListsCopyIntegrationGroup
  • Вызов: Group::copy
public function copy($groupId, $copiedGroupId)
{
	$iblockTypeId = "lists_socnet";

	$iblockIds = $this->getIblockIdsToCopy($iblockTypeId, $groupId);
	if (!$iblockIds)
	{
		return;
	}

	$this->addToQueue($copiedGroupId);

	Option::set(self::MODULE_ID, self::CHECKER_OPTION.$copiedGroupId, "Y");

	$queueOption = [
		"iblockTypeId" => $iblockTypeId,
		"groupId" => $groupId,
		"copiedGroupId" => $copiedGroupId,
		"features" => $this->features
	];
	Option::set(self::MODULE_ID, self::STEPPER_OPTION.$copiedGroupId, serialize($queueOption));

	$agent = CAgent::getList([], [
		"MODULE_ID" => self::MODULE_ID,
		"NAME" => GroupStepper::class."::execAgent();"
	])->fetch();
	if (!$agent)
	{
		GroupStepper::bind(1);
	}
}