GetGroupsList
Description and parameters
CDBResult CCatalogGroup::GetGroupsList( array arFilter = Array() );
The method returns records from the binding table that describes relationships between price types and site users. The returned array is filtered using the parameters specified in arFilter. Non-static method.
Call parameters
Parameter | Description |
---|---|
arFilter | Filter is specified as an associative array with keys as field names and value conditions. Permissible keys:
|
Returned values
CDBResult class object, containing set of associative arrays with keys
Key | Description |
---|---|
ID | Record code. |
CATALOG_GROUP_ID | Price type ID. |
GROUP_ID | Код группы пользователей. |
BUY | Flag with values: Y - record with permission for user of this group to purchase products with prices of this type, N - record with permission for users of this group to view prices of this type. |
Examples
<? // Select price type IDs for all users // (i. e. group 2) can purchase products $db_res = CCatalogGroup::GetGroupsList(array("GROUP_ID"=>2, "BUY"=>"Y")); while ($ar_res = $db_res->Fetch()) { echo $ar_res["CATALOG_GROUP_ID"].", "; } ?>
© «Bitrix24», 2001-2024