• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/admin/defaultsitehelper.php
  • Класс: BitrixSaleLocationAdminDefaultSiteHelper
  • Вызов: DefaultSiteHelper::getDefaultLocationList
static function getDefaultLocationList($siteId)
{
	$entityClass = static::getEntityClass('location');

	$res = $entityClass::getList(array(
		'filter' => array(
			'=SITE_ID' => $siteId
		),
		//'order' => array('SORT' => 'asc')
	));
	$index = array();
	while($item = $res->fetch())
		$index['LOCATION'][] = $item;
	
	return $index;
}