Documentation

GetRubricList

CDBResult
CPosting::GetRubricList(
 int ID
);

Method returns selection of subscription categories to send a post message. Static method.

Parameters

ParameterDescriptionAvailable from version
ID Post ID.

Return value

Returns the result of CDBResult type. Upon retrieval from the result by the methods of CDBResult class - now [link=91191]"Subscription" object fields[/link] become available: ID, NAME, SORT, LID, ACTIVE.

Example

//to which subscription categories to send
$aPostRub = array();
$post_rub = CPosting::GetRubricList($post_arr["ID"]);
while($post_rub_arr = $post_rub->Fetch())
    $aPostRub[] = $post_rub_arr["ID"];


© «Bitrix24», 2001-2024
Up