• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/compiler.php
  • Класс: BitrixSaleLocationImportCompileris
  • Вызов: is::generateExportFilesFromTableBundle_Standard_YandexOnly
public function generateExportFilesFromTableBundle_Standard_YandexOnly($item, $table)
{
	if(in_array($item['TYPE_CODE'], $this->typeGroups['LAYOUT']['TYPES']))
		$this->currentParentGroup = $item['CODE'];

	########################################################
	########################################################
	########################################################

	if($item['TYPE_CODE'] == 'VILLAGE' && strpos($item['EXTERNALS'], 'YAMARKET') === false/*not from yandex database*/)
	{
		//$this->output($item['NAME'].' skipped');
		return false;
	}

	$cat = $this->sysMaps['BASETYPE2GROUP'][$item['TYPE_CODE']];
	$fName = $this->typeGroups[$cat]['FILE_NAME_TEMPLATE'];

	$fName = str_replace(array(
		'%BASE_PARENT_ITEM_CODE%',
		'%CODE%',
		'.csv'
	), array(
		$cat == 'LAYOUT' ? '' : $this->currentParentGroup,
		ToLower($cat),
		''
	), $fName);

	$this->addItemToCSV($fName, 'assets_standard', $item);

	########################################################
	########################################################
	########################################################

	return true;
}