当前位置: 首页>>代码示例>>PHP>>正文


PHP TicketValidation::cleanDBonItemDelete方法代码示例

本文整理汇总了PHP中TicketValidation::cleanDBonItemDelete方法的典型用法代码示例。如果您正苦于以下问题:PHP TicketValidation::cleanDBonItemDelete方法的具体用法?PHP TicketValidation::cleanDBonItemDelete怎么用?PHP TicketValidation::cleanDBonItemDelete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TicketValidation的用法示例。


在下文中一共展示了TicketValidation::cleanDBonItemDelete方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: cleanDBonPurge

 function cleanDBonPurge()
 {
     global $DB;
     $query1 = "DELETE\n                 FROM `glpi_tickettasks`\n                 WHERE `tickets_id` = '" . $this->fields['id'] . "'";
     $DB->query($query1);
     $query1 = "DELETE\n                 FROM `glpi_ticketfollowups`\n                 WHERE `tickets_id` = '" . $this->fields['id'] . "'";
     $DB->query($query1);
     $ts = new TicketValidation();
     $ts->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $query1 = "DELETE\n                 FROM `glpi_ticketsatisfactions`\n                 WHERE `tickets_id` = '" . $this->fields['id'] . "'";
     $DB->query($query1);
     $pt = new Problem_Ticket();
     $pt->cleanDBonItemDelete('Ticket', $this->fields['id']);
     $ts = new TicketCost();
     $ts->cleanDBonItemDelete($this->getType(), $this->fields['id']);
     $slaLevel_ticket = new SlaLevel_Ticket();
     $slaLevel_ticket->deleteForTicket($this->getID(), SLT::TTO);
     $slaLevel_ticket->deleteForTicket($this->getID(), SLT::TTR);
     $query1 = "DELETE\n                 FROM `glpi_tickets_tickets`\n                 WHERE `tickets_id_1` = '" . $this->fields['id'] . "'\n                       OR `tickets_id_2` = '" . $this->fields['id'] . "'";
     $DB->query($query1);
     $ct = new Change_Ticket();
     $ct->cleanDBonItemDelete(__CLASS__, $this->fields['id']);
     $ip = new Item_Ticket();
     $ip->cleanDBonItemDelete('Ticket', $this->fields['id']);
     parent::cleanDBonPurge();
 }
开发者ID:glpi-project,项目名称:glpi,代码行数:26,代码来源:ticket.class.php


注:本文中的TicketValidation::cleanDBonItemDelete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。