mirror of
https://github.com/tips-of-mine/GLPI-Plugin-SOC-Case-Management.git
synced 2025-06-28 05:38:42 +02:00
Correction du schéma de la base de données et des hooks
This commit is contained in:
@ -322,4 +322,26 @@ class PluginSocCase extends CommonDBTM {
|
||||
'date_creation' => $_SESSION["glpi_currenttime"]
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display tab content for item
|
||||
*
|
||||
* @param CommonGLPI $item
|
||||
* @param integer $tabnum
|
||||
* @param integer $withtemplate
|
||||
* @return boolean
|
||||
*/
|
||||
static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0) {
|
||||
switch ($item->getType()) {
|
||||
case 'Ticket':
|
||||
$case_ticket = new PluginSocCaseTicket();
|
||||
$case_ticket->showForTicket($item);
|
||||
return true;
|
||||
case 'Change':
|
||||
$case_change = new PluginSocCaseChange();
|
||||
$case_change->showForChange($item);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user