Bitrix Site Manager

CPosting::GetByID

CDBResult
CPosting::GetByID(
    $ID
);

The method GetByID returns an issue by its ID.

Parameters

ParameterDescription
$ID The issue ID.

Return Values

Returns an instance of the CDBResult class. The fields of the Issue object become available after calling one of the CDBResult methods.

Example



if($ID>0)
{
    $post = CPosting::GetByID($ID);
    if(!($post_arr = $post->ExtractFields("str_")))
        $ID=0;
}