• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/import.php
  • Класс: BitrixSaleLocationImportImportProcess
  • Вызов: ImportProcess::checkNodeIsParent
private function checkNodeIsParent($id)
{
	$locationTable = LocationLocationTable::getTableName();

	$res = $this->dbConnection->query("select count(*) as CNT from {$locationTable} where PARENT_ID = ".($id == 'root' ? '0' : intval($id)))->fetch();

	return intval($res['CNT']);
}