Documentation

GetByID

array
CSocNetUserToGroup::GetByID(
 int id
);

The method returns binding parameters between user and group. Static method.

Parameters

Parameter Description Available from version
id Binding ID.

Returned value

Array of binding parameters with keys as follows:
ID - record ID,
USER_ID - user ID,
GROUP_ID - group ID,
ROLE - user role in group: SONET_ROLES_MODERATOR - moderator, SONET_ROLES_USER - user, SONET_ROLES_BAN - blacklist, SONET_ROLES_REQUEST - join request,
DATE_CREATE - date when created,
DATE_UPDATE - date when updated,
INITIATED_BY_TYPE - who initialized binding: SONET_INITIATED_BY_USER - user, SONET_INITIATED_BY_GROUP - group,
INITIATED_BY_USER_ID - user ID, who initialized the binding,
MESSAGE - message when requesting to create binding.

© «Bitrix24», 2001-2024