• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/copy/implement/section.php
  • Класс: BitrixIblockCopyImplementSection
  • Вызов: Section::add
public function add(Container $container, array $fields)
{
	$sectionObject = new CIBlockSection;

	$result = $sectionObject->add($fields);

	if (!$result)
	{
		if ($sectionObject->LAST_ERROR)
		{
			$this->result->addError(new Error($sectionObject->LAST_ERROR, self::SECTION_COPY_ERROR));
		}
		else
		{
			$this->result->addError(new Error("Unknown error", self::SECTION_COPY_ERROR));
		}
	}
	return $result;
}