. -------------------------------------------------------------------------- */ /** * casehistory short summary. * * casehistory description. * * @version 1.0 * @author MoronO */ class PluginProcessmakerCasehistory extends CommonDBTM { static function displayTabContentForItem(CommonGLPI $case, $tabnum = 1, $withtemplate = 0) { global $CFG_GLPI, $PM_SOAP; $rand = rand(); $iframeId = "caseiframe-caseHistory-{$rand}"; $proj = new PluginProcessmakerProcess; $proj->getFromDB($case->fields['plugin_processmaker_processes_id']); $glpi_data = urlencode(json_encode([ 'glpi_url' => $CFG_GLPI['url_base'], 'glpi_tabtype' => 'history', 'glpi_tabpanelname' => 'caseHistory', 'glpi_iframeid' => $iframeId, 'glpi_elttagname' => 'body', 'glpi_sid' => $PM_SOAP->getPMSessionID(), 'glpi_app_uid' => $case->fields['case_guid'], 'glpi_pro_uid' => $proj->fields['process_guid'], ])); $url = $PM_SOAP->serverURL ."/cases/ajaxListener" ."?action=caseHistory" ."&sid=" . $PM_SOAP->getPMSessionID() ."&glpi_data=$glpi_data"; echo ""; } function getTabNameForItem(CommonGLPI $case, $withtemplate = 0) { return __('History', 'processmaker'); } }