Documentation

CForumPrivateMessage::GetByID

array
GetByID(
 int ID
);

The GetByID method returns an array of parameters of a specified message.

Parameters

ParameterDescription
ID The ID of the message whose parameters are required.

Return Values

The method returns an array of message parameters. If the required message is not found, false is returned.

See Also

Private message table

Example



<?
$arMessage = CForumPrivateMessage::GetByID($MID);
if ($arMessage)
{
  $AUTHOR_ID = IntVal($arMessage["AUTHOR_ID"]);
  $USER_ID = IntVal($arMessage["USER_ID"]);
}
?>
© «Bitrix24», 2001-2024