Correction du schéma de la base de données et des hooks

This commit is contained in:
tips-of-mine
2025-05-31 14:50:31 +02:00
committed by GitHub
parent 4622a1a2cd
commit 80167ce471
3 changed files with 67 additions and 35 deletions

View File

@ -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;
}
}