Make a select box for all items
static public showSelectItemFromItemtypes ( array $options = [] ) : randomized | ||
$options | array | array: - itemtype_name : the name of the field containing the itemtype (default 'itemtype') - items_id_name : the name of the field containing the id of the selected item (default 'items_id') - itemtypes : all possible types to search for (default: $CFG_GLPI["state_types"]) - default_itemtype : the default itemtype to select (don't define if you don't need a default) (defaut 0) - entity_restrict : restrict entity in searching items (default -1) - onlyglobal : don't match item that don't have `is_global` == 1 (false by default) - checkright : check to see if we can "view" the itemtype (false by default) - showItemSpecificity : given an item, the AJAX file to open if there is special treatment. For instance, select a Item_Device* for CommonDevice - emptylabel : Empty choice's label (default self::EMPTY_VALUE) - used : array / Already used items ID: not to display in dropdown (default empty) |
return | randomized | value used to generate HTML IDs |