public function execute()
 {
     $id = $this->post('id', true);
     if (!is_array($id)) {
         if (strpos($id, ',') !== false) {
             $id = array_map('intval', explode(',', $id));
         } else {
             $id = array($id);
         }
     }
     $product_model = new shopProductModel();
     if ($product_model->delete($id)) {
         $this->response = true;
     } else {
         throw new waAPIException('access_denied', 403);
     }
 }
 public function deleteProducts(array $product_ids)
 {
     if ($product_ids) {
         $product_model = new shopProductModel();
         $this->logAction('product_delete', $product_ids);
         return $product_model->delete($product_ids);
     }
     return false;
 }