function getItems() { $arItems = array(); $arSelect = array("ID"); $arFilter = $this->getFilter(); if ($this->getSectionID() > 0) { $arFilter['SECTION_ID'] = $this->getSectionID(); $arFilter['INCLUDE_SUBSECTIONS'] = "Y"; } $iBlock = new CIBlockElement(); $this->navResult = $res = $iBlock->GetList($this->getOrder(), $arFilter, false, array("nPageSize" => $this->limit), $arSelect); while ($arFields = $res->GetNext()) { $product = new AqwProduct(); $product->setItemID($arFields['ID']); $arItems[] = $product->getItem(); } return $arItems; }