|
1C-Bitrix 25.700.0
|
| array | order in format: array('FIELD_NAME' => '#sort_order#' [, ...]), where #sort_order# is 'ASC' or 'DESC' |
| array | filter in format: array('???FIELD_NAME' => 'value' [, ...]), where ??? can be one of (without double quotes): "!" - not equals "<" - less than value "<=" - less than or equal to value ">" - greater than value ">=" - greater than or equal to value |
Additionally available fields (not presented in data, but can be used for filter): DATE_ACTIVE_TO, DATE_ACTIVE_FROM, ACTIVE_DATE.
lessons with LESSON_ID >= 100, and DETAIL_TEXT_TYPE != 'html', sorted by NAME ascending, than by LESSON_ID descending.
<?php $arOrder = array ('NAME' => 'ASC', 'LESSON_ID' => 'DESC'); $arFilter = array ('!DETAIL_TEXT_TYPE' => 'html', '>=LESSON_ID' => 100);
$rc = ClassName::GetList($arOrder, $arFilter); while (($data = $rc->Fetch()) !== false) var _dump ($data);
| LearnException | with error bit set EXC_ERR_ALL_PARAMS |