/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Specific to location
$tab[5]['checktype'] = 'date';
$tab[6]['minvalue'] = 0;
$tab[6]['maxvalue'] = 120;
$tab[6]['step'] = 1;
$tab[6]['checktype'] = 'integer';
$tab[7]['minvalue'] = 0;
$tab[7]['maxvalue'] = 120;
$tab[7]['step'] = 1;
$tab[7]['checktype'] = 'integer';
$tab[11]['checktype'] = 'float';
$tab[20]['checktype'] = 'date';
$tab[22]['linkfield'] = 'billing';
// Associated suppliers
$tab[29]['linkfield'] = 'suppliers_id';
$tab[29]['displaytype'] = 'relation';
$tab[29]['relationclass'] = 'Contract_Supplier';
$tab[29]['relationfield'] = $tab[29]['linkfield'];
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(12, 13, 20, 41, 42, 43, 44, 45, 72);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("dropdown" => array(4), "date" => array(5), "dropdown_integer" => array(6, 7, 21), "bool" => array(86), "alert" => array(59), "billing" => array(22), "renewal" => array(23), "multiline_text" => array(16, 90));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}