CRubric::GetList( $aSort=array(), $aFilter=array() );
The method GetList returns a filtered list of mailing lists.
Parameter | Description |
---|---|
$aSort | Array containing the sort criteria entries in the form "field name"=>"direction". The field name can be the following:
array("LID"=>"ASC", "NAME"=>"DESC") |
$aFilter | Array containing the filter entries in the form of "field name"=>"filter
value". The field name can be the following:
array("LID"=>SITE_ID, "ACTIVE"=>"Y") |
Returns an instance of the CDBResult class. The Mailing list object fields become available after calling one of the CDBResult methods.
<? //get the site's newsletter categories $rub = CRubric::GetList(array("SORT"=>"ASC", "NAME"=>"ASC"), array("ACTIVE"=>"Y", "LID"=>LANG)); while($rub->ExtractFields("r_")): ?> <input type="checkbox" name="sf_RUB_ID[]" value="<?echo $r_ID?>"><?echo $r_NAME?><br> <? endwhile; ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |