function getSearchOptions()
 {
     $tab = parent::getSearchOptions();
     $tab[12]['table'] = 'glpi_fqdns';
     $tab[12]['field'] = 'fqdn';
     $tab[12]['name'] = FQDN::getTypeName(1);
     $tab[12]['datatype'] = 'string';
     $tab[20]['table'] = 'glpi_networknames';
     $tab[20]['field'] = 'name';
     $tab[20]['name'] = NetworkName::getTypeName(1);
     $tab[20]['massiveaction'] = false;
     $tab[20]['datatype'] = 'dropdown';
     return $tab;
 }
Beispiel #2
0
 function getSearchOptions()
 {
     $tab = parent::getSearchOptions();
     $tab[12]['table'] = 'glpi_fqdns';
     $tab[12]['field'] = 'fqdn';
     $tab[12]['name'] = FQDN::getTypeName(1);
     $tab[12]['datatype'] = 'dropdown';
     $tab[13]['table'] = 'glpi_ipaddresses';
     $tab[13]['field'] = 'name';
     $tab[13]['name'] = IPAddress::getTypeName(1);
     $tab[13]['joinparams'] = array('jointype' => 'itemtype_item');
     $tab[13]['forcegroupby'] = true;
     $tab[13]['massiveaction'] = false;
     $tab[13]['datatype'] = 'dropdown';
     $tab[20]['table'] = $this->getTable();
     $tab[20]['field'] = 'itemtype';
     $tab[20]['name'] = __('Type');
     $tab[20]['datatype'] = 'itemtype';
     $tab[20]['massiveaction'] = false;
     $tab[21]['table'] = $this->getTable();
     $tab[21]['field'] = 'items_id';
     $tab[21]['name'] = __('ID');
     $tab[21]['datatype'] = 'integer';
     $tab[21]['massiveaction'] = false;
     return $tab;
 }