CPosting::GetList( $aSort=array(), $aFilter=array() );
The method GetList returns a filtered list of issues.
Parameter | Description |
---|---|
aSort | Array containing the sort criteria in the form "field name"=>"direction". The field name can be the following:
array("STATUS"=>"ASC", "DATE_SENT"=>"DESC") |
aFilter | Array containing the filter in the form of arrays "field name"=>"filter
value". The field name can be the following:
array("SUBJECT"=>"test | test", "TO"=>"@bitrixsoft.com") |
Returns an instance of the CDBResult
class. The Issue object fields except those of
the text type become available after calling one of the CDBResult
methods.
In case of an error, the class variable LAST_ERROR contains the error
description.
$cPosting = new CPosting; $arFilter = Array( "ID" => $find_id, "TIMESTAMP_1" => $find_timestamp_1, "TIMESTAMP_2" => $find_timestamp_2, "DATE_SENT_1" => $find_date_sent_1, "DATE_SENT_2" => $find_date_sent_2, "STATUS" => $find_status, "STATUS_ID" => $find_status_id, "SUBJECT" => $find_subject, "FROM" => $find_from, "TO" => $find_to, "BODY" => $find_body, "BODY_TYPE" => $find_body_type ); $rsPosting = $cPosting->GetList(array($by=>$order), $arFilter); $strError .= $cPosting->LAST_ERROR; $rsPosting->NavStart(50); echo $rsPosting->NavPrint("Issues"); while($rsPosting->NavNext(true, "f_")) { //... }
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |