Bitrix Site Manager

CSubcription::GetRubricList

CSubcription::GetRubricList(
    $ID
);

The method GetRubricList returns the selection of subscriptions to which this e-mail address is subscribed.

Parameters

ParameterDescription
$ID The subscription ID.

Return Values

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

Example



//array of subscribed categories
function GetRubricArray($ID)
{
    $aSubscrRub = array();
    if($ID>0)
    {
        $subscr_rub = CSubscription::GetRubricList($ID);
        while($subscr_rub_arr = $subscr_rub->Fetch())
            $aSubscrRub[] = $subscr_rub_arr["ID"];
    }
    return $aSubscrRub;
}