• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/compiler.php
  • Класс: BitrixSaleLocationImportCompileris
  • Вызов: is::getMainTreeNodesOfType
private function getMainTreeNodesOfType($bundle, $types = array(), &$buffer)
{
	foreach($bundle as $id)
	{
		$node = $this->data['TREES']['MAIN']['NODES'][$id];

		if(in_array($node['TYPE_CODE'], $types))
		{
			//$node['NAME_I'] = $this->makeNameIndexKey($node['NAME']['RU']['NAME']);
			$buffer[$id] = $node;
		}

		if(isset($this->data['TREES']['MAIN']['EDGES'][$id]))
			$this->getMainTreeNodesOfType($this->data['TREES']['MAIN']['EDGES'][$id], $types, $buffer);
	}
}