Пример #1
0
 function cleanDBonPurge()
 {
     global $DB;
     $supplierjob = new Supplier_Ticket();
     $supplierjob->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $cs = new Contract_Supplier();
     $cs->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $cs = new Contact_Supplier();
     $cs->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     // Ticket rules use suppliers_id_assign
     Rule::cleanForItemAction($this, 'suppliers_id%');
 }
Пример #2
0
 function cleanDBonPurge()
 {
     global $DB;
     $supplierjob = new Supplier_Ticket();
     $supplierjob->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $ps = new Problem_Supplier();
     $ps->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $cs = new Change_Supplier();
     $cs->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $query1 = "DELETE\n                 FROM `glpi_projecttaskteams`\n                 WHERE `items_id` = '" . $this->fields['id'] . "'\n                       AND `itemtype` = '" . __CLASS__ . "'";
     $DB->query($query1);
     $query1 = "DELETE\n                 FROM `glpi_projectteams`\n                 WHERE `items_id` = '" . $this->fields['id'] . "'\n                       AND `itemtype` = '" . __CLASS__ . "'";
     $DB->query($query1);
     $cs = new Contract_Supplier();
     $cs->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $cs = new Contact_Supplier();
     $cs->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     // Ticket rules use suppliers_id_assign
     Rule::cleanForItemAction($this, 'suppliers_id%');
 }