예제 #1
0
 function cleanDBonPurge()
 {
     global $DB;
     $query1 = "DELETE\n                 FROM `glpi_changetasks`\n                 WHERE `changes_id` = '" . $this->fields['id'] . "'";
     $DB->query($query1);
     $cp = new Change_Problem();
     $cp->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
     $ct = new Change_Ticket();
     $ct->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
     $cp = new Change_Project();
     $cp->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
     $ci = new Change_Item();
     $ci->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
     $cv = new ChangeValidation();
     $cv->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
     $cc = new ChangeCost();
     $cc->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
     parent::cleanDBonPurge();
 }
예제 #2
0
 function cleanDBonPurge()
 {
     global $DB;
     $query1 = "DELETE\n                 FROM `glpi_problemtasks`\n                 WHERE `problems_id` = '" . $this->fields['id'] . "'";
     $DB->query($query1);
     $pt = new Problem_Ticket();
     $pt->cleanDBonItemDelete('Problem', $this->fields['id']);
     $cp = new Change_Problem();
     $cp->cleanDBonItemDelete('Problem', $this->fields['id']);
     $ip = new Item_Problem();
     $ip->cleanDBonItemDelete('Problem', $this->fields['id']);
     parent::cleanDBonPurge();
 }