src/Intraface/modules/webshop/FeaturedProducts.php 1 location
|
@@ 62-69 (lines=8) @@
|
| 59 |
|
/** |
| 60 |
|
* @param integer $id Id for the featured product to delete |
| 61 |
|
*/ |
| 62 |
|
function delete($id) |
| 63 |
|
{ |
| 64 |
|
$result = $this->db->query('DELETE FROM shop_featuredproducts WHERE intranet_id = ' . $this->db->quote($this->intranet->getId(), 'integer') . ' AND id = ' . $this->db->quote($id, 'integer')); |
| 65 |
|
if (PEAR::isError($result)) { |
| 66 |
|
throw new Exception($result->getUserInfo()); |
| 67 |
|
} |
| 68 |
|
return true; |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
function getAll() |
| 72 |
|
{ |
src/Intraface/modules/webshop/BasketEvaluation.php 1 location
|
@@ 193-201 (lines=9) @@
|
| 190 |
|
* |
| 191 |
|
* @return boolean |
| 192 |
|
*/ |
| 193 |
|
public function delete() |
| 194 |
|
{ |
| 195 |
|
$result = $this->db->exec("UPDATE webshop_basket_evaluation SET active = 0 WHERE intranet_id = ".$this->kernel->intranet->get('id')." AND id = ".$this->id); |
| 196 |
|
if (PEAR::isError($result)) { |
| 197 |
|
throw new Exception($result->getMessage() . $result->getUserInfo()); |
| 198 |
|
return false; |
| 199 |
|
} |
| 200 |
|
return true; |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
/** |
| 204 |
|
* Gets a list with evaluations |