CSubcription::GetList( $aSort=array(), $aFilter=array() );
The method GetList returns a filtered list of subscriptions.
Parameter | Description |
---|---|
$aSort | Array containing the sort criteria entries in the form of "field name"=>"direction". The field name can be the following:
|
$aFilter | Array containing the filter entries in the form "field name"=>"filter
value". The field name can be the following:
|
Returns an instance of the CDBResult class. The Subscription object fields become available after calling one of the CDBResult methods.
//selects rubrics to which message is to be sent $aPostRub = array(); $post_rub = CPostingGeneral::GetRubricList($post_arr["ID"]); while($post_rub_arr = $post_rub->Fetch()) $aPostRub[] = $post_rub_arr["ID"]; //active and confirmed e-mail addresses subscribed to rubrics $subscr = CSubscription::GetList( array("ID"=>"ASC"), array("RUBRIC"=>$aPostRub, "CONFIRMED"=>"Y", "ACTIVE"=>"Y", "FORMAT"=>$post_arr["SUBSCR_FORMAT"], "EMAIL"=>$post_arr["EMAIL_FILTER"]) ); while(($subscr_arr = $subscr->Fetch())) $aEmail[] = $subscr_arr["EMAIL"];
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |