Documentation

GetByID

array
CSocNetMessages::GetByID(
 int id
);

The method returns array of message parameters. Non-static method.

Parameters

Parameter Description Available from version
id Message ID.

Returned value

Returns array with keys:
ID - message ID,
FROM_USER_ID - user ID (message sender),
TO_USER_ID - user ID (message recipient),
MESSAGE - message,
DATE_CREATE - date when message created,
DATE_VIEW - date when message was read,
MESSAGE_TYPE - message type: SONET_MESSAGE_SYSTEM - system, SONET_MESSAGE_PRIVATE - user message,
FROM_DELETED - flag (Y/N) message deleting by sender,
TO_DELETED - флаг (Y/N) message deleting by recipient.

See Also

  • [link=191241]CSocNetMessages::GetList[/link]


© «Bitrix24», 2001-2024
Up