Documentation

CForumNew::GetByID

array
GetByID(
 int ID
);

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

Parameters

ParameterDescription
ID The forum ID.

Return Values

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

See Also

  • Forum fields

    Example


    
    <?
    $arForum = CForumNew::GetByID($FID);
    if ($arForum)
    {
      echo $arForum["NAME"]."<br>";
    }
    ?>
    
  • © «Bitrix24», 2001-2024
    Up