Documentation

GetByID

CDBResult
CRubric::GetByID(
    int ID
);

Method selects a single newsletter by its ID. Static method.

Parameters

ParameterDescriptionAvailable from version
IDNewsletter identifier.

Returned values

Returns a CDBResult result. "Newsletter" field objects become available when fetching via CDBResult class methods from the result .

Example

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

© «Bitrix24», 2001-2024
Up