GetByID
CDBResult CGroup::GetByID( int id, string SHOW_USERS_AMOUNT = "N" )
The method returns the user group by its ID as an object of CDBResult class. Static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
id | Group ID. | |
SHOW_USERS_AMOUNT | If set to "Y", the selection will include the field "USERS" containing the number of users in the group; if set to "N", the selection will not include such field (default behaviour); | 3.3.12 |
See Also
Examples of use
<? $rsGroup = CGroup::GetByID(2, "Y"); $arGroup = $rsGroup->Fetch(); echo "<pre>"; print_r($arGroup); echo "</pre>"; ?>
© «Bitrix24», 2001-2024