mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
add getTypeName
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@104 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
7
hook.php
7
hook.php
@ -40,6 +40,13 @@ class pluginExample extends CommonDBTM {
|
|||||||
$this->type=PLUGIN_EXAMPLE_TYPE;
|
$this->type=PLUGIN_EXAMPLE_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Should return the localized name of the type
|
||||||
|
static function getTypeName() {
|
||||||
|
global $LANG;
|
||||||
|
|
||||||
|
return 'Example Type';
|
||||||
|
}
|
||||||
|
|
||||||
function getSearchOptions() {
|
function getSearchOptions() {
|
||||||
global $LANG;
|
global $LANG;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user