Bitrix Site Manager

CForumMessage::GetByID

array
GetByID(
 int ID
);

The method GetByID returns an array of message parameters by its ID.

Parameters

ParameterDescription
ID The message ID.

Return Values

An array of message parameters. If the massage can not be found, false is returned.

See Also

  • Message fields

    Example


    
    <?
    $arMessage = CForumMessage::GetByID($MID);
    if ($arMessage)
    {
      $TID = IntVal($arMessage["TOPIC_ID"]);
      $FID = IntVal($arMessage["FORUM_ID"]);
    }
    ?>