Ejemplo n.º 1
0
 function cleanDBonPurge()
 {
     $cs = new Contract_Supplier();
     $cs->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $ci = new Contract_Item();
     $ci->cleanDBonItemDelete($this->getType(), $this->fields['id']);
 }
Ejemplo n.º 2
0
 function cleanDBonPurge()
 {
     global $DB;
     $job = new Ticket();
     $cs = new Contract_Supplier();
     $cs->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $cs = new Contact_Supplier();
     $cs->cleanDBonItemDelete($this->getType(), $this->fields['id']);
 }
Ejemplo n.º 3
0
 function cleanDBonPurge()
 {
     $class = new Contract_Supplier();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new ContractCost();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new Contract_Item();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $class = new Alert();
     $class->cleanDBonItemDelete($this->getType(), $this->fields['id']);
 }
Ejemplo n.º 4
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%');
 }
Ejemplo n.º 5
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%');
 }