GetByUserID
array CSocNetUserRelations::GetByUserID( int user1ID, int user2ID );
The method returns binding between users based on their IDs. Non-static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
user1ID | First user ID. | |
user2ID | Second user ID. |
Returned value
When binding is unavailable, returns false. When binding exists, returns 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