• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/helpers/admin/catalogedit.php
  • Класс: BitrixCatalogHelpersAdminCatalogEdit
  • Вызов: CatalogEdit::saveCatalog
public function saveCatalog($catalogData)
{
	if (!$this->isSuccess())
		return;

	$this->prepareCatalogData($catalogData);
	if (!$this->isSuccess())
		return;

	if (empty($this->catalogTableActions))
		return;

	foreach ($this->catalogTableActions as $iblockId => $action)
	{
		switch ($action)
		{
			case self::CATALOG_ACTION_ADD:
				break;
			case self::CATALOG_ACTION_UPDATE:


				break;
			case self::CATALOG_ACTION_DELETE:
				$result = CCatalog::delete($iblockId);
				if (!$result)
				{

				}
				break;
		}
		if (!$this->isSuccess())
			break;
	}
	unset($iblockId, $action);
}