. * ------------------------------------------------------------------------- * @copyright Copyright (C) 2009-2022 by GenericObject plugin team. * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html * @link https://github.com/pluginsGLPI/genericobject * ------------------------------------------------------------------------- */ class PluginGenericobjectCommonTreeDropdown extends CommonTreeDropdown { //Get itemtype name static function getTypeName($nb = 0) { $class=get_called_class(); return dropdown_getTypeName($class, $nb); } static function getFormURL($full = true) { _log("PluginGenericobjectCommonTreeDropdown::getFormURL", get_parent_class(get_called_class())); return Toolbox::getItemTypeFormURL( get_parent_class(get_called_class()), $full) . "?itemtype=".get_called_class(); } static function getSearchURL($full = true) { _log("PluginGenericobjectCommonTreeDropdown::getSearchURL", get_parent_class(get_called_class())); return Toolbox::getItemTypeSearchURL( get_parent_class(get_called_class()), $full) . "?itemtype=".get_called_class(); } }