コード例 #1
0
ファイル: networkname.class.php プロジェクト: kipman/glpi
 function post_updateItem($history = 1)
 {
     global $DB;
     $this->post_workOnItem();
     if (count($this->updates)) {
         // Update Ticket Tco
         if (in_array("itemtype", $this->updates) || in_array("items_id", $this->updates)) {
             $ip = new IPAddress();
             // Update IPAddress
             foreach ($DB->request('glpi_ipaddresses', array('itemtype' => 'NetworkName', 'items_id' => $this->getID())) as $data) {
                 $ip->update(array('id' => $data['id'], 'itemtype' => 'NetworkName', 'items_id' => $this->getID()));
             }
         }
     }
     parent::post_updateItem($history);
 }
コード例 #2
0
 function post_updateItem($history = 1)
 {
     $this->post_workOnItem();
     parent::post_updateItem($history);
 }