Documentation

GetByID

array
CSocNetUserRelations::GetByID(
 int id
);

The method returns binding parameters. Non-static method.

Parameters

Parameter Description Available from version
id Binding ID.

Returned value

Array with keys:
ID- binding ID,
FIRST_USER_ID - first user ID,
SECOND_USER_ID - second user ID,
RELATION - binding type: SONET_RELATIONS_FRIEND - users are friends, SONET_RELATIONS_REQUEST - one of users have sent to another user a friends request, SONET_RELATIONS_BAN - one of users have included another user to blacklist,
DATE_CREATE - date when binding was created,
DATE_UPDATE - date when binding was modified,
MESSAGE - message from binding creator,
INITIATED_BY - flag, specifying user who initiated the binding: F - first user, S - second user.

© «Bitrix24», 2001-2024