當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。