示例#1
0
 public function getItemsMainData($pageNumber, $num)
 {
     $goods = new DBGoodsType();
     $limitBegin = ($pageNumber - 1) * $num;
     $limitEnd = $num;
     if ($this->isAdminOrderEnabled()) {
         $goods->getAdminSortedForCommon($limitBegin, $limitEnd);
     } else {
         $goods->executeRequestWithLimit('', '', DB::TABLE_GOODS___ORDER, DB::ASC, $limitBegin, $limitEnd);
     }
     $this->data = $goods->getResponse();
     $this->dataCount = $goods->getResponseSize();
     $goods->executeTotalCount();
     $this->dataTotalCount = $goods->getTotalCount();
 }