• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/import.php
  • Класс: BitrixSaleLocationImportis
  • Вызов: is::stageRestoreIndexes
protected function stageRestoreIndexes()
{
	$indexes = array(
		'IX_B_SALE_LOC_MARGINS',
		'IX_B_SALE_LOC_MARGINS_REV',
		//'IX_B_SALE_LOC_PARENT', // already restored at REBALANCE_WALK_TREE stage
		'IX_B_SALE_LOC_DL',
		'IX_B_SALE_LOC_TYPE',
		'IX_B_SALE_LOC_NAME_NAME_U',
		'IX_B_SALE_LOC_NAME_LI_LI'
	);

	if(!isset($indexes[$this->getStep()]))
		$this->nextStage();
	else
	{
		$this->restoreIndexes($indexes[$this->getStep()]);
		$this->logMessage('Index restored: '.$indexes[$this->getStep()]);
		$this->nextStep();
	}
}