. -------------------------------------------------------------------------- */ /** * Summary of PluginExampleItemForm * Example of *_item_form implementation * @see http://glpi-developer-documentation.rtfd.io/en/master/plugins/hooks.html#items-display-related * */ class PluginExampleItemForm { /** * Display contents at the begining of item forms. * * @param array $params Array with "item" and "options" keys * * @return void */ static public function preItemForm($params) { $item = $params['item']; $options = $params['options']; $firstelt = ($item::getType() == Ticket::getType() ? 'th' : 'td'); $out = '