本文整理汇总了PHP中PluginDatainjectionCommonInjectionLib::getBlacklistedOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP PluginDatainjectionCommonInjectionLib::getBlacklistedOptions方法的具体用法?PHP PluginDatainjectionCommonInjectionLib::getBlacklistedOptions怎么用?PHP PluginDatainjectionCommonInjectionLib::getBlacklistedOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginDatainjectionCommonInjectionLib
的用法示例。
在下文中一共展示了PluginDatainjectionCommonInjectionLib::getBlacklistedOptions方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getOptions
/**
* @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);
}
示例2: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
*/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array();
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例3: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
${$blacklist} = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array();
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("multiline_text" => array(16));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例4: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(14, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 54, 55, 91, 92, 93);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("multiline_text" => array(3, 16, 17, 24), "dropdown" => array(9));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例5: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(8, 29);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("dropdown" => array(9), "multiline_text" => array(3, 16, 90), "bool" => array(86));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例6: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
$tab[5]['checktype'] = 'datetime';
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array();
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("dropdown" => array(4), "date" => array(5), "multiline_text" => array(6, 7), "bool" => array(8, 9, 86), "user" => array(70));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例7: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Specific to location
$tab[3]['linkfield'] = 'locations_id';
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(91, 92, 93);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("dropdown" => array(3, 4, 23, 31, 40, 49, 46, 71), "user" => array(24, 70), "float" => array(11), "bool" => array(41, 42, 43, 44, 45, 46, 47, 48), "multiline_text" => array(16, 90));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例8: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Specific to location
$tab[3]['linkfield'] = 'locations_id';
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(10, 11, 12, 13, 14, 15, 19, 34, 35, 36, 39, 91, 92, 93, 150, 151, 152, 153, 154, 155, 156, 160, 161, 162, 163, 164, 165, 166);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("dropdown" => array(3, 4, 23, 31, 32, 33, 40, 41, 42, 45, 46, 49, 71), "user" => array(24, 70), "multiline_text" => array(16, 90));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例9: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
$tab[3]['checktype'] = 'date';
$tab[4]['checktype'] = 'float';
$tab[5]['checktype'] = 'date';
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array();
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("date" => array(3, 5), "yesno" => array(86), "multiline_text" => array(16, 90), "decimal" => array(4));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例10: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
$tab[3]['checktype'] = 'bool';
$tab[3]['displaytype'] = 'bool';
$tab[4]['checktype'] = 'text';
$tab[4]['displaytype'] = 'dropdown';
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(4);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("bool" => array(3, 6, 7), "dropdown" => array(4));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例11: getOptions
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Specific to location
$tab[3]['linkfield'] = 'locations_id';
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(5, 9, 31, 91, 92, 93);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$key = array_search(2, $options['ignore_fields']);
unset($options['ignore_fields'][$key]);
$options['displaytype'] = array("dropdown" => array(2, 3, 8, 10, 32, 49), "user" => array(6, 24), "multiline_text" => array(4), "bool" => array(7, 11));
$tab = PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
return $tab;
}
示例12: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Specific to location
$tab[3]['linkfield'] = 'locations_id';
$tab[8]['minvalue'] = '1';
$tab[8]['maxvalue'] = '100';
$tab[8]['step'] = 1;
$tab[8]['-1'] = __('Never');
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(91, 92, 93);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("dropdown" => array(3, 4, 23, 49), "user" => array(24), "multiline_text" => array(16, 90), "dropdown_integer" => array(8));
$options['checktype'] = array("integer" => array(8));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例13: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Specific to location
$tab[3]['linkfield'] = 'locations_id';
//Virtual type : need to be processed at the end !
$tab[200]['table'] = 'glpi_networkequipments';
$tab[200]['field'] = 'nb_ports';
$tab[200]['name'] = __('Number of ports', 'datainjection');
$tab[200]['checktype'] = 'integer';
$tab[200]['displaytype'] = 'virtual';
$tab[200]['linkfield'] = 'nb_ports';
$tab[200]['injectable'] = PluginDatainjectionCommonInjectionLib::FIELD_VIRTUAL;
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(91, 92, 93);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$options['displaytype'] = array("dropdown" => array(3, 4, 11, 23, 31, 32, 33, 40, 49, 71), "bool" => array(86), "user" => array(24, 70), "multiline_text" => array(16, 90));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例14: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
if ($primary_type == 'SoftwareVersion') {
$tab[100]['name'] = _n('Software', 'Software', 1);
$tab[100]['field'] = 'name';
$tab[100]['table'] = getTableForItemType('Software');
$tab[100]['linkfield'] = 'softwares_id';
$tab[100]['displaytype'] = 'dropdown';
$tab[100]['checktype'] = 'text';
$tab[100]['injectable'] = true;
}
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array();
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
$key = array_search(2, $options['ignore_fields']);
unset($options['ignore_fields'][$key]);
$options['displaytype'] = array("dropdown" => array(4, 31), "multiline_text" => array(16), "software" => array(100));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}
示例15: getOptions
/**
* @see plugins/datainjection/inc/PluginDatainjectionInjectionInterface::getOptions()
**/
function getOptions($primary_type = '')
{
$tab = Search::getOptions(get_parent_class($this));
//Specific to location
$tab[1]['linkfield'] = 'name';
$tab[3]['linkfield'] = 'locations_id';
//Manage password
$tab[4]['table'] = $this->getTable();
$tab[4]['field'] = 'password';
$tab[4]['linkfield'] = 'password';
$tab[4]['name'] = __('Password');
$tab[4]['displaytype'] = 'password';
$tab[5]['displaytype'] = 'text';
//To manage groups : relies on a CommonDBRelation object !
$tab[100]['name'] = __('Group');
$tab[100]['field'] = 'name';
$tab[100]['table'] = getTableForItemType('Group');
$tab[100]['linkfield'] = getForeignKeyFieldForTable($tab[100]['table']);
$tab[100]['displaytype'] = 'relation';
$tab[100]['relationclass'] = 'Group_User';
$tab[100]['relationfield'] = $tab[100]['linkfield'];
//To manage groups : relies on a CommonDBRelation object !
$tab[101]['name'] = __('Profile');
$tab[101]['field'] = 'name';
$tab[101]['table'] = getTableForItemType('Profile');
$tab[101]['linkfield'] = getForeignKeyFieldForTable($tab[101]['table']);
$tab[101]['displaytype'] = 'relation';
$tab[101]['relationclass'] = 'Profile_User';
$tab[101]['relationfield'] = $tab[101]['linkfield'];
//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = array(13, 14, 15, 17, 20, 23, 30, 31, 60, 61, 77, 91, 92, 93);
$options['ignore_fields'] = array_merge($blacklist, $notimportable);
//Add displaytype value
$options['displaytype'] = array("dropdown" => array(3, 79, 81, 82), "multiline_text" => array(16), "bool" => array(8), "password" => array(4));
return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
}