Bitrix Site Manager

CSaleLocationGroup::GetLocationList

CDBResult
CSaleLocationGroup::GetLocationList(
  array arFilter = Array()
);

The method GetLocationList returns a filtered list of locations that are members of specified location groups.

Parameters

ParameterDescription
arFilter The filter is an associated array whose keys are the record parameter names, and values are the conditions.

The following keys are possible:
  • LOCATION_ID - the location ID;
  • LOCATION_GROUP_ID - the location group ID.

Return Values

Returns an instance of CDBResult containing associated arrays with the following keys.

Key Description
LOCATION_ID The location ID.
LOCATION_GROUP_ID The location group ID.

Example



<?
// Select all locations of the group 2
$db_res = CSaleLocationGroup::GetLocationList(array("LOCATION_GROUP_ID"=>2));
while ($ar_res = $db_res->Fetch())
{
   echo $ar_res["LOCATION_ID"].", ";
}
?>