static function getAdditionalMenuOptions()
 {
     global $CFG_GLPI;
     $elements = array('iprange' => 'PluginFusioninventoryIPRange', 'config' => 'PluginFusioninventoryConfig', 'task' => 'PluginFusioninventoryTask', 'timeslot' => 'PluginFusioninventoryTimeslot', 'unmanaged' => 'PluginFusioninventoryUnmanaged', 'inventoryruleimport' => 'PluginFusioninventoryInventoryRuleImport', 'inventoryruleentity' => 'PluginFusioninventoryInventoryRuleEntity', 'inventoryrulelocation' => 'PluginFusioninventoryInventoryRuleLocation', 'collectrule' => 'PluginFusioninventoryCollectRule', 'inventorycomputerblacklist' => 'PluginFusioninventoryInventoryComputerBlacklist', 'configsecurity' => 'PluginFusioninventoryConfigSecurity', 'credential' => 'PluginFusioninventoryCredential', 'credentialip' => 'PluginFusioninventoryCredentialIp', 'collect' => 'PluginFusioninventoryCollect', 'deploypackage' => 'PluginFusioninventoryDeployPackage', 'deploymirror' => 'PluginFusioninventoryDeployMirror', 'deploygroup' => 'PluginFusioninventoryDeployGroup', 'ignoredimportdevice' => 'PluginFusioninventoryIgnoredimportdevice', 'ruledictionnarycomputerarch' => 'PluginFusioninventoryRuleDictionnaryComputerArch');
     $options = array();
     $options['menu']['title'] = self::getTypeName();
     $options['menu']['page'] = self::getSearchURL(false);
     if (Session::haveRight('plugin_fusioninventory_configuration', READ)) {
         $options['menu']['links']['config'] = PluginFusioninventoryConfig::getFormURL(false);
     }
     foreach ($elements as $type => $itemtype) {
         $options[$type] = array('title' => $itemtype::getTypeName(), 'page' => $itemtype::getSearchURL(false));
         $options[$type]['links']['search'] = $itemtype::getSearchURL(false);
         if ($itemtype::canCreate()) {
             if ($type != 'ignoredimportdevice') {
                 $options[$type]['links']['add'] = $itemtype::getFormURL(false);
             }
         }
         if (Session::haveRight('plugin_fusioninventory_configuration', READ)) {
             $options[$type]['links']['config'] = PluginFusioninventoryConfig::getFormURL(false);
         }
     }
     // Add icon for import package
     $img = Html::image($CFG_GLPI["root_doc"] . "/plugins/fusioninventory/pics/menu_import.png", array('alt' => __('Import', 'fusioninventory')));
     $options['deploypackage']['links'][$img] = '/plugins/fusioninventory/front/deploypackage.import.php';
     // Add icon for documentation
     $img = Html::image($CFG_GLPI["root_doc"] . "/plugins/fusioninventory/pics/books.png", array('alt' => __('Import', 'fusioninventory')));
     $options['menu']['links'][$img] = '/plugins/fusioninventory/front/documentation.php';
     $options['agent'] = array('title' => PluginFusioninventoryAgent::getTypeName(), 'page' => PluginFusioninventoryAgent::getSearchURL(false), 'links' => array('search' => PluginFusioninventoryAgent::getSearchURL(false)));
     if (Session::haveRight('plugin_fusioninventory_configuration', READ)) {
         $options['agent']['links']['config'] = PluginFusioninventoryConfig::getFormURL(false);
     }
     return $options;
 }
 /**
  * Display actions type (itemtypes)
  *
  * @param $myname value name of dropdown
  * @param $method value name of the method selected
  * @param $value value name of the definition type (used for edit taskjob)
  * @param $entity_restrict restriction of entity if required
  *
  * @return value rand of the dropdown
  *
  **/
 function dropdownActionType($myname, $method, $value = 0, $entity_restrict = '')
 {
     global $CFG_GLPI;
     $a_methods = PluginFusioninventoryStaticmisc::getmethods();
     $a_actioninitiontype = array();
     $a_actioninitiontype[''] = '------';
     $a_actioninitiontype['PluginFusioninventoryAgent'] = PluginFusioninventoryAgent::getTypeName();
     foreach ($a_methods as $datas) {
         if ($method == $datas['method']) {
             $module = ucfirst($datas['module']);
             $class = PluginFusioninventoryStaticmisc::getStaticMiscClass($module);
             if (is_callable(array($class, "task_actiontype_" . $method))) {
                 $a_actioninitiontype = call_user_func(array($class, "task_actiontype_" . $method), $a_actioninitiontype);
             }
         }
     }
     $rand = Dropdown::showFromArray($myname, $a_actioninitiontype);
     $params = array('ActionType' => '__VALUE__', 'entity_restrict' => $entity_restrict, 'rand' => $rand, 'myname' => $myname, 'method' => $method, 'actiontypeid' => 'dropdown_' . $myname . $rand);
     Ajax::UpdateItemOnSelectEvent('dropdown_ActionType' . $rand, "show_ActionList", $CFG_GLPI["root_doc"] . "/plugins/fusioninventory/ajax/dropdownactionlist.php", $params);
     return $rand;
 }