src/Intraface/modules/procurement/ProcurementItem.php 1 location
|
@@ 388-395 (lines=8) @@
|
| 385 |
|
* Deletes item |
| 386 |
|
* |
| 387 |
|
*/ |
| 388 |
|
public function delete() |
| 389 |
|
{ |
| 390 |
|
$db = new DB_Sql; |
| 391 |
|
$db->query("UPDATE procurement_item SET active = 0 WHERE intranet_id = " . $this->procurement->kernel->intranet->get('id') . " AND id = " . $this->id . " AND procurement_id = " . $this->procurement->get("id")); |
| 392 |
|
$this->id = 0; |
| 393 |
|
|
| 394 |
|
return 1; |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
/** |
| 398 |
|
* Returns list of items |
src/Intraface/modules/cms/Site.php 1 location
|
@@ 111-120 (lines=10) @@
|
| 108 |
|
$this->value['cc_license'] = $this->kernel->setting->get('intranet', 'cc_license', 'site_id_' . $this->get('id')); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
function delete() |
| 112 |
|
{ |
| 113 |
|
if ($this->id == 0) { |
| 114 |
|
$this->error->set('Kunne ikke slette'); |
| 115 |
|
return 0; |
| 116 |
|
} |
| 117 |
|
$db = new Db_Sql; |
| 118 |
|
$db->query("UPDATE cms_site SET active = 0 WHERE intranet_id=".$this->kernel->intranet->get('id')." AND id = " . $this->id); |
| 119 |
|
return 1; |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
function getList() |
| 123 |
|
{ |