mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
implement plugin history, (GLPI feature #3423)
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@192 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -305,5 +305,24 @@ class PluginExampleExample extends CommonDBTM {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an history entry message
|
||||
*
|
||||
* @param $data Array from glpi_logs table
|
||||
*
|
||||
* @since GLPI version 0.84
|
||||
*
|
||||
* @return string
|
||||
**/
|
||||
static function getHistoryEntry($data) {
|
||||
|
||||
switch($data['linked_action'] - Log::HISTORY_PLUGIN) {
|
||||
case 0:
|
||||
return _('History from plugin example');
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user