| @@ 138-152 (lines=15) @@ | ||
| 135 | * |
|
| 136 | * @return array |
|
| 137 | */ |
|
| 138 | public function getProductsInCategoryId($credentials, $shop_id, $category_id, $results_per_page = 0, $pagging_offset = 0) |
|
| 139 | { |
|
| 140 | $search = array(); |
|
| 141 | $search['area'] = 'category_'.$category_id; |
|
| 142 | if ($results_per_page > 0) { |
|
| 143 | $search['use_paging'] = 'true'; |
|
| 144 | } else { |
|
| 145 | $search['use_paging'] = 'false'; |
|
| 146 | } |
|
| 147 | ||
| 148 | $search['category'] = $category_id; |
|
| 149 | $search['offset'] = $pagging_offset; |
|
| 150 | ||
| 151 | return $this->getProducts($credentials, $shop_id, $search); |
|
| 152 | } |
|
| 153 | ||
| 154 | /** |
|
| 155 | * Gets a list with products with a given keyword or with given keywords |
|
| @@ 140-154 (lines=15) @@ | ||
| 137 | * |
|
| 138 | * @return array |
|
| 139 | */ |
|
| 140 | public function getProductsInCategoryId($credentials, $shop_id, $category_id, $results_per_page = 0, $pagging_offset = 0) |
|
| 141 | { |
|
| 142 | $search = array(); |
|
| 143 | $search['area'] = 'category_'.$category_id; |
|
| 144 | if ($results_per_page > 0) { |
|
| 145 | $search['use_paging'] = 'true'; |
|
| 146 | } else { |
|
| 147 | $search['use_paging'] = 'false'; |
|
| 148 | } |
|
| 149 | ||
| 150 | $search['category'] = $category_id; |
|
| 151 | $search['offset'] = $pagging_offset; |
|
| 152 | ||
| 153 | return $this->getProducts($credentials, $shop_id, $search); |
|
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * Gets a list with products with a given keyword or with given keywords |
|