當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Ticket::updateDateMod方法代碼示例

本文整理匯總了PHP中Ticket::updateDateMod方法的典型用法代碼示例。如果您正苦於以下問題:PHP Ticket::updateDateMod方法的具體用法?PHP Ticket::updateDateMod怎麽用?PHP Ticket::updateDateMod使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Ticket的用法示例。


在下文中一共展示了Ticket::updateDateMod方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Ticket

 function post_addItem()
 {
     $t = new Ticket();
     $no_stat_computation = true;
     if ($this->input['type'] == Ticket::ASSIGN) {
         $no_stat_computation = false;
     }
     $t->updateDateMod($this->fields['tickets_id'], $no_stat_computation);
     parent::post_addItem();
 }
開發者ID:ryukansent,項目名稱:Thesis-SideB,代碼行數:10,代碼來源:group_ticket.class.php

示例2: Ticket

 function post_updateItem($history = 1)
 {
     global $CFG_GLPI;
     $job = new Ticket();
     $mailsend = false;
     if ($job->getFromDB($this->fields["tickets_id"])) {
         $job->updateDateMod($this->fields["tickets_id"]);
         if (count($this->updates)) {
             if ($CFG_GLPI["use_mailing"] && (in_array("content", $this->updates) || isset($this->input['_need_send_mail']))) {
                 $options = array('followup_id' => $this->fields["id"], 'is_private' => $this->fields['is_private']);
                 NotificationEvent::raiseEvent("update_followup", $job, $options);
             }
         }
         // Add log entry in the ticket
         $changes[0] = 0;
         $changes[1] = '';
         $changes[2] = $this->fields['id'];
         Log::history($this->getField('tickets_id'), 'Ticket', $changes, $this->getType(), Log::HISTORY_UPDATE_SUBITEM);
     }
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:20,代碼來源:ticketfollowup.class.php

示例3: Ticket

 function post_updateItem($history = 1)
 {
     global $CFG_GLPI;
     $update_done = false;
     $job = new Ticket();
     $mailsend = false;
     if ($job->getFromDB($this->input["tickets_id"])) {
         $job->updateDateMod($this->input["tickets_id"]);
         if (count($this->updates)) {
             $update_done = true;
             if ($CFG_GLPI["use_mailing"] && in_array("content", $this->updates)) {
                 $options = array('task_id' => $this->fields["id"]);
                 NotificationEvent::raiseEvent('update_task', $job, $options);
                 $mailsend = true;
             }
             if (in_array("actiontime", $this->updates)) {
                 $job->updateActionTime($this->input["tickets_id"]);
             }
         }
     }
     if (isset($this->input["_plan"])) {
         $update_done = true;
         $pt = new TicketPlanning();
         // Update case
         if (isset($this->input["_plan"]["id"])) {
             $this->input["_plan"]['tickettasks_id'] = $this->input["id"];
             $this->input["_plan"]['tickets_id'] = $this->input['tickets_id'];
             $this->input["_plan"]['_nomail'] = $mailsend;
             if (!$pt->update($this->input["_plan"])) {
                 return false;
             }
             unset($this->input["_plan"]);
             // Add case
         } else {
             $this->input["_plan"]['tickettasks_id'] = $this->input["id"];
             $this->input["_plan"]['tickets_id'] = $this->input['tickets_id'];
             $this->input["_plan"]['_nomail'] = $mailsend;
             if (!$pt->add($this->input["_plan"])) {
                 return false;
             }
             unset($this->input["_plan"]);
         }
     }
     if ($update_done) {
         // Add log entry in the ticket
         $changes[0] = 0;
         $changes[1] = '';
         $changes[2] = $this->fields['id'];
         Log::history($this->getField('tickets_id'), 'Ticket', $changes, $this->getType(), HISTORY_UPDATE_SUBITEM);
     }
 }
開發者ID:ryukansent,項目名稱:Thesis-SideB,代碼行數:51,代碼來源:tickettask.class.php

示例4: Ticket

 function post_addItem()
 {
     global $CFG_GLPI;
     $t = new Ticket();
     $t->updateDateMod($this->fields['tickets_id_1']);
     $t->updateDateMod($this->fields['tickets_id_2']);
     parent::post_addItem();
     $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

示例5: Ticket

 function post_addItem()
 {
     $t = new Ticket();
     $t->updateDateMod($this->fields['tickets_id_1']);
     $t->updateDateMod($this->fields['tickets_id_2']);
     parent::post_addItem();
 }
開發者ID:ryukansent,項目名稱:Thesis-SideB,代碼行數:7,代碼來源:ticket_ticket.class.php


注:本文中的Ticket::updateDateMod方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。