Documentation

GetByID

array
GetByID(
 int ID
);

The method GetByID returns an array of topic parameters by its ID. The method call result is cached, therefore, the repeated calls with the same topic do not incur extra queries to the database (unless the cache is reset after the topic parameters are changed).

Parameters

ParameterDescription
ID The topic ID.

Return Values

An array of topic parameters. If the topic cannot be found, false is returned.

See Also

  • Topic fields

    Example


    
    <?
    $arTopic = CForumTopic::GetByID($TID);
    if ($arTopic)
    {
      $FID = IntVal($arTopic["FORUM_ID"]);
    }
    ?>
  • © «Bitrix24», 2001-2024
    Up