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


PHP CommonDBRelation::post_deleteFromDB方法代码示例

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


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

示例1: Ticket

 function post_deleteFromDB()
 {
     global $CFG_GLPI;
     $donotif = $CFG_GLPI["use_mailing"];
     if (isset($this->input["_no_notif"]) && $this->input["_no_notif"]) {
         $donotif = false;
     }
     $t = new Ticket();
     if ($t->getFromDB($this->fields['tickets_id'])) {
         if ($t->fields["suppliers_id_assign"] == 0 && $t->countUsers(Ticket::ASSIGN) == 0 && $t->countGroups(Ticket::ASSIGN) == 0) {
             $t->update(array('id' => $this->fields['tickets_id'], 'status' => 'new'));
         } else {
             $t->updateDateMod($this->fields['tickets_id']);
             if ($donotif) {
                 NotificationEvent::raiseEvent("update", $t);
             }
         }
     }
     parent::post_deleteFromDB();
 }
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:20,代码来源:group_ticket.class.php

示例2: array

 function post_deleteFromDB()
 {
     global $CFG_GLPI;
     $donotif = $CFG_GLPI["use_mailing"];
     //       if (isset($this->input["_no_notif"]) && $this->input["_no_notif"]) {
     //          $donotif = false;
     //       }
     $item = $this->getConnexityItem(static::$itemtype_1, static::getItilObjectForeignKey());
     if ($item instanceof CommonDBTM) {
         if ($item->countSuppliers(CommonITILActor::ASSIGN) == 0 && $item->countUsers(CommonITILActor::ASSIGN) == 0 && $item->countGroups(CommonITILActor::ASSIGN) == 0 && $item->fields['status'] != CommonITILObject::CLOSED && $item->fields['status'] != CommonITILObject::SOLVED) {
             $status = CommonITILObject::INCOMING;
             if (in_array($item->fields['status'], Change::getNewStatusArray())) {
                 $status = $item->fields['status'];
             }
             $item->update(array('id' => $this->fields[static::getItilObjectForeignKey()], 'status' => $status));
         } else {
             $item->updateDateMod($this->fields[static::getItilObjectForeignKey()]);
             if ($donotif) {
                 $options = array();
                 if (isset($this->fields['users_id'])) {
                     $options = array('_old_user' => $this->fields);
                 }
                 NotificationEvent::raiseEvent("update", $item, $options);
             }
         }
     }
     parent::post_deleteFromDB();
 }
开发者ID:jose-martins,项目名称:glpi,代码行数:28,代码来源:commonitilactor.class.php

示例3: Problem

 /**
  * @since version 0.84
  **/
 function post_deleteFromDB()
 {
     global $CFG_GLPI;
     $donotif = $CFG_GLPI["use_mailing"];
     //       if (isset($this->input["_no_notif"]) && $this->input["_no_notif"]) {
     //          $donotif = false;
     //       }
     if ($donotif) {
         $problem = new Problem();
         if ($problem->getFromDB($this->fields["problems_id"])) {
             $options = array();
             NotificationEvent::raiseEvent("delete", $problem, $options);
         }
     }
     parent::post_deleteFromDB();
 }
开发者ID:jose-martins,项目名称:glpi,代码行数:19,代码来源:problem_ticket.class.php

示例4:

 function post_deleteFromDB()
 {
     SoftwareLicense::updateValidityIndicator($this->fields['softwarelicenses_id']);
     parent::post_deleteFromDB();
 }
开发者ID:pvasener,项目名称:glpi,代码行数:5,代码来源:computer_softwarelicense.class.php

示例5: Ticket

 function post_deleteFromDB()
 {
     global $CFG_GLPI;
     $t = new Ticket();
     $t->updateDateMod($this->fields['tickets_id_1']);
     $t->updateDateMod($this->fields['tickets_id_2']);
     parent::post_deleteFromDB();
     $donotif = $CFG_GLPI["use_mailing"];
     if ($donotif) {
         $t->getFromDB($this->fields['tickets_id_1']);
         NotificationEvent::raiseEvent("update", $t);
         $t->getFromDB($this->fields['tickets_id_2']);
         NotificationEvent::raiseEvent("update", $t);
     }
 }
开发者ID:stweil,项目名称:glpi,代码行数:15,代码来源:ticket_ticket.class.php

示例6: Ticket

 function post_deleteFromDB()
 {
     $t = new Ticket();
     $t->updateDateMod($this->fields['tickets_id_1']);
     $t->updateDateMod($this->fields['tickets_id_2']);
     parent::post_deleteFromDB();
 }
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:7,代码来源:ticket_ticket.class.php


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