Documentation

GetByID

array
CBlogComment::GetByID(
 int ID
);

The method returns parameters of the comment with ID. Non-static method.

Method parameters

ParameterDescription
ID Comment ID.

Returned value

Array with comment fields is returned.

Note

This method uses built-in caching. As a result, when the method is used multiple times on the page, the database request will be performed only once.

See Also

Examples of use

<?
$ID = 1;
$arComment = CBlogComment::GetByID($ID);
if(is_array($arComment))
    print_r($arComment);
else
    echo "Comment not found.";
?>


© «Bitrix24», 2001-2024
Up