GetLocationList
CDBResult CSaleLocationGroup::GetLocationList( array arFilter = Array() );
The method GetLocationList returns a filtered list of locations that are members of specified location groups.
Parameters
Parameter | Description |
---|---|
arFilter | The filter is an associated array whose keys are the record parameter
names, and values are the conditions. The following keys are possible:
|
Returned 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"].", "; } ?>
© «Bitrix24», 2001-2024