Bitrix Site Manager

CPosting::GetRubricList

CDBResult
CPosting::GetRubricList(
    $ID
);

The method GetRubricList returns subscriptions to which the message will be sent.

Parameters

ParameterDescription
$ID The issue ID.

Return Values

Returns an instance of the CDBResult class. The ID, NAME, SORT, LID and ACTIVE fields of the Issue object become available after calling one of the CDBResult methods.

Example



//obtain subscriptions to which the message is to be sent
$aPostRub = array();
$post_rub = CPosting::GetRubricList($post_arr["ID"]);
while($post_rub_arr = $post_rub->Fetch())
    $aPostRub[] = $post_rub_arr["ID"];