static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) { $pfCollect_File = new PluginFusioninventoryCollect_File_Content(); if (get_class($item) == 'PluginFusioninventoryCollect') { $pfCollect_File->showForCollect($item->getID()); } else { if (get_class($item) == 'Computer') { $pfCollect_File->showForComputer($item->getID()); } } return TRUE; }
$pfTaskjobstate->changeStatusFinish($jobstate['id'], $jobstate['items_id'], $jobstate['itemtype']); } break; case 'PluginFusioninventoryCollect_Wmi': // update registry content $pfCWC = new PluginFusioninventoryCollect_Wmi_Content(); $pfCWC->updateComputer($computers_id, $a_values, $jobstate['items_id']); $pfTaskjobstate->changeStatus($jobstate['id'], PluginFusioninventoryTaskjobstate::AGENT_HAS_SENT_DATA); if ($a_values['_cpt'] == 1) { // it last value $pfTaskjobstate->changeStatusFinish($jobstate['id'], $jobstate['items_id'], $jobstate['itemtype']); } break; case 'PluginFusioninventoryCollect_File': // update registry content $pfCFC = new PluginFusioninventoryCollect_File_Content(); $pfCFC->storeTempFilesFound($jobstate['id'], $a_values); $pfTaskjobstate->changeStatus($jobstate['id'], PluginFusioninventoryTaskjobstate::AGENT_HAS_SENT_DATA); if ($a_values['_cpt'] == 1) { // it last value $pfCFC->updateComputer($computers_id, $jobstate['items_id'], $jobstate['id']); $pfTaskjobstate->changeStatusFinish($jobstate['id'], $jobstate['items_id'], $jobstate['itemtype']); } break; } } break; } if (count($response) > 0) { echo json_encode($response); } else {