当前位置: 首页>>代码示例>>PHP>>正文


PHP Search::getOptions方法代码示例

本文整理汇总了PHP中Search::getOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Search::getOptions方法的具体用法?PHP Search::getOptions怎么用?PHP Search::getOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Search的用法示例。


在下文中一共展示了Search::getOptions方法的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);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:31,代码来源:contractinjection.class.php

示例2: 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);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:12,代码来源:interfacetypeinjection.class.php

示例3: getOptions

 /**
  * @see PluginDatainjectionInjectionInterface::getOptions()
  */
 function getOptions($primary_type = '')
 {
     $tab = Search::getOptions(get_parent_class($this));
     $notimportable = array(5, 9, 29, 30, 31, 50, 53, 56, 57, 58, 59, 60, 80, 91, 92, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140);
     $options['ignore_fields'] = $notimportable;
     $options['displaytype'] = array("dropdown" => array(2, 32, 3, 8, 49, 10), "user" => array(6, 24), "multiline_text" => array(4), "date" => array(9), "bool" => array(11, 7));
     $tab = PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
     return $tab;
 }
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:12,代码来源:customfieldsinjection.class.php

示例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();
     $options['ignore_fields'] = array_merge($blacklist, $notimportable);
     return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:12,代码来源:manufacturerinjection.class.php

示例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(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);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:13,代码来源:entityinjection.class.php

示例6: 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);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:13,代码来源:supplierinjection.class.php

示例7: getOptions

 function getOptions($primary_type = '')
 {
     $tab = Search::getOptions(get_parent_class($this));
     //$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions();
     //Remove some options because some fields cannot be imported
     $options['ignore_fields'] = array(2, 80, 86, 19);
     $options['displaytype'] = array("multiline_text" => array(16));
     $tab = PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
     return $tab;
 }
开发者ID:geldarr,项目名称:hack-space,代码行数:10,代码来源:clientinjection.class.php

示例8: 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);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:14,代码来源:knowbaseiteminjection.class.php

示例9: getOptions

 function getOptions($primary_type = '')
 {
     $tab = Search::getOptions(get_parent_class($this));
     //Specific to location
     $tab[12]['linkfield'] = 'locations_id';
     //$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions();
     //Remove some options because some fields cannot be imported
     $notimportable = array(7, 30, 80);
     $options['ignore_fields'] = $notimportable;
     $options['displaytype'] = array("dropdown" => array(2, 3, 4, 6, 10, 12), "user" => array(11), "multiline_text" => array(9), "date" => array(14), "bool" => array(8, 13));
     return PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
 }
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:12,代码来源:databaseinjection.class.php

示例10: 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);
 }
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:15,代码来源:computerinjection.class.php

示例11: 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);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:15,代码来源:monitorinjection.class.php

示例12: 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);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:16,代码来源:budgetinjection.class.php

示例13: getOptions

 function getOptions($primary_type = '')
 {
     $tab = Search::getOptions(get_parent_class($this));
     //Specific to location
     $tab[12]['linkfield'] = 'locations_id';
     //$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions();
     //Remove some options because some fields cannot be imported
     $notimportable = array(8, 16, 18, 19, 31, 80);
     $options['ignore_fields'] = $notimportable;
     $options['displaytype'] = array("dropdown" => array(3, 11, 12, 17, 21, 22, 23, 24, 25), "user" => array(4, 10, 14), "multiline_text" => array(7), "date" => array(5, 6, 9), "bool" => array(13, 15), "decimal" => array(20));
     $tab = PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
     return $tab;
 }
开发者ID:geldarr,项目名称:hack-space,代码行数:13,代码来源:resourceinjection.class.php

示例14: getOptions

 function getOptions($primary_type = '')
 {
     $tab = Search::getOptions(get_parent_class($this));
     //Specific to location
     $tab[4]['checktype'] = 'date';
     //$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions();
     //Remove some options because some fields cannot be imported
     $notimportable = array(30, 80);
     $options['ignore_fields'] = $notimportable;
     $options['displaytype'] = array("user" => array(2), "multiline_text" => array(3), "date" => array(4));
     $tab = PluginDatainjectionCommonInjectionLib::addToSearchOptions($tab, $options, $this);
     return $tab;
 }
开发者ID:geldarr,项目名称:hack-space,代码行数:13,代码来源:ideaboxinjection.class.php

示例15: 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);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:17,代码来源:group_userinjection.class.php


注:本文中的Search::getOptions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。