Documentation

Update

int
CSocNetUserToGroup::Update(
 int id,
 array arFields
);

The method modifies binding parameters between user and group. Non-static method.

Parameters

Parameter Description Available from version
id Binding ID.
arFields Array of binding parameters with parameter names as keys and parameter values as key values. CAn contain the following keys:
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.

Returned value

Returns binding ID on success and false otherwise.



© «Bitrix24», 2001-2024
Up