Bitrix Site Manager

CRubric::GetByID

CRubric::GetByID(
    $ID
);

The method GetByID returns a mailing list by its ID.

Parameters

ParameterDescription
$IDThe mailing list ID.

Return Values

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

Example



if($ID>0)
{
    $rubric = CRubric::GetByID($ID);
    if($rubric->ExtractFields("str_"))
        echo $str_NAME;
}