本文整理汇总了PHP中CommonDropdown类的典型用法代码示例。如果您正苦于以下问题:PHP CommonDropdown类的具体用法?PHP CommonDropdown怎么用?PHP CommonDropdown使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CommonDropdown类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[14]['table'] = $this->getTable();
$tab[14]['field'] = 'code';
$tab[14]['name'] = __('Code', 'resources');
$tab[15]['table'] = $this->getTable();
$tab[15]['field'] = __('Short name', 'resources');
$tab[17]['table'] = 'glpi_plugin_resources_professions';
$tab[17]['field'] = 'name';
$tab[17]['name'] = __('Profession', 'resources');
$tab[17]['datatype'] = 'dropdown';
$tab[18]['table'] = $this->getTable();
$tab[18]['field'] = 'is_active';
$tab[18]['name'] = __('Active');
$tab[18]['datatype'] = 'bool';
$tab[19]['table'] = $this->getTable();
$tab[19]['field'] = 'begin_date';
$tab[19]['name'] = __('Begin date');
$tab[19]['datatype'] = 'date';
$tab[20]['table'] = $this->getTable();
$tab[20]['field'] = 'end_date';
$tab[20]['name'] = __('End date');
$tab[20]['datatype'] = 'date';
return $tab;
}
开发者ID:geldarr,项目名称:hack-space,代码行数:26,代码来源:rank.class.php
示例2: getSearchOptions
/**
* Get search function for the class
*
* @return array of search option
**/
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab += Location::getSearchOptionsToAdd();
$tab[3]['datatype'] = 'itemlink';
return $tab;
}
开发者ID:jose-martins,项目名称:glpi,代码行数:12,代码来源:netpoint.class.php
示例3: canDeleteItem
function canDeleteItem()
{
if (isset($this->fields['OCS_TYPE']) && $this->fields['OCS_TYPE'] == '*' && isset($this->fields['OCS_TYPEMIB']) && $this->fields['OCS_TYPEMIB'] == '*') {
return false;
}
return parent::canDeleteItem();
}
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:7,代码来源:networkporttype.class.php
示例4: getRights
/**
* @since version 0.85
*
* @see commonDBTM::getRights()
**/
function getRights($interface = 'central')
{
$values = parent::getRights();
$values[self::HOMEPAGE] = __('See in homepage', 'monitoring');
$values[self::DASHBOARD] = __('See in dashboard', 'monitoring');
return $values;
}
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:12,代码来源:servicescatalog.class.php
示例5: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[14]['table'] = $this->getTable();
$tab[14]['field'] = 'code';
$tab[14]['name'] = __('Code', 'resources');
return $tab;
}
开发者ID:geldarr,项目名称:hack-space,代码行数:8,代码来源:budgetvolume.class.php
示例6: getSearchOptions
/**
* Get search function for the class
*
* @return array of search option
**/
function getSearchOptions()
{
global $LANG;
$tab = parent::getSearchOptions();
$tab[11]['table'] = $this->getTable();
$tab[11]['field'] = 'value';
$tab[11]['name'] = $LANG['rulesengine'][16];
return $tab;
}
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:14,代码来源:rulerightparameter.class.php
示例7: getSearchOptions
/**
* Get search function for the class
*
* @return array of search option
*/
function getSearchOptions()
{
global $LANG;
$tab = parent::getSearchOptions();
$tab += Location::getSearchOptionsToAdd();
$tab[3]['datatype'] = 'itemlink';
$tab[3]['itemlink_type'] = 'Location';
return $tab;
}
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:14,代码来源:netpoint.class.php
示例8: getSearchOptions
/**
* Get search function for the class
*
* @return array of search option
**/
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[11]['table'] = $this->getTable();
$tab[11]['field'] = 'value';
$tab[11]['name'] = _n('Criterion', 'Criteria', 1);
$tab[11]['datatype'] = 'string';
return $tab;
}
开发者ID:stweil,项目名称:glpi,代码行数:14,代码来源:rulerightparameter.class.php
示例9: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[10]['table'] = $this->getTable();
$tab[10]['field'] = 'essid';
$tab[10]['name'] = __('ESSID');
$tab[10]['datatype'] = 'string';
return $tab;
}
开发者ID:pvasener,项目名称:glpi,代码行数:9,代码来源:wifinetwork.class.php
示例10: getSearchOptions
/**
* Get search function for the class
*
* @return array of search option
**/
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[11]['table'] = $this->getTable();
$tab[11]['field'] = 'tag';
$tab[11]['name'] = __('ID TAG');
$tab[11]['datatype'] = 'number';
return $tab;
}
开发者ID:gaforeror,项目名称:glpi,代码行数:14,代码来源:vlan.class.php
示例11: getSearchOptions
/**
* Get search function for the class
*
* @return array of search option
**/
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[11]['table'] = $this->getTable();
$tab[11]['field'] = 'content';
$tab[11]['name'] = __('Content');
$tab[11]['datatype'] = 'text';
$tab[11]['massiveactoin'] = false;
return $tab;
}
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:15,代码来源:blacklistedmailcontent.class.php
示例12: getSearchOptions
/**
* Get search function for the class
*
* @return array of search option
**/
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[11]['table'] = $this->getTable();
$tab[11]['field'] = 'color';
$tab[11]['name'] = __('Color');
$tab[11]['datatype'] = 'color';
$tab[12]['table'] = $this->getTable();
$tab[12]['field'] = 'is_finished';
$tab[12]['name'] = __('Finished state');
$tab[12]['datatype'] = 'bool';
return $tab;
}
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:18,代码来源:projectstate.class.php
示例13: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[2303]['table'] = $this->getTable();
$tab[2303]['field'] = 'color';
$tab[2303]['name'] = __('Associated color', 'projet');
$tab[2303]['datatype'] = 'text';
$tab[2304]['table'] = $this->getTable();
$tab[2304]['field'] = 'type';
$tab[2304]['name'] = __('Finished', 'projet');
$tab[2304]['datatype'] = 'bool';
return $tab;
}
开发者ID:geldarr,项目名称:hack-space,代码行数:13,代码来源:projetstate.class.php
示例14: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[11]['table'] = 'glpi_plugin_timelineticket_grouplevels';
$tab[11]['field'] = 'rank';
$tab[11]['name'] = __('Position');
$tab[11]['massiveaction'] = false;
$tab[12]['table'] = 'glpi_plugin_timelineticket_grouplevels';
$tab[12]['field'] = 'groups';
$tab[12]['name'] = __('List of associated groups', 'timelineticket');
$tab[12]['massiveaction'] = false;
$tab[12]['nosearch'] = true;
return $tab;
}
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:14,代码来源:grouplevel.class.php
示例15: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[4]['name'] = __('Content');
$tab[4]['field'] = 'content';
$tab[4]['table'] = $this->getTable();
$tab[4]['datatype'] = 'text';
$tab[4]['htmltext'] = true;
$tab[3]['name'] = __('Task category');
$tab[3]['field'] = 'name';
$tab[3]['table'] = getTableForItemType('TaskCategory');
$tab[3]['datatype'] = 'dropdown';
return $tab;
}
开发者ID:stweil,项目名称:glpi,代码行数:14,代码来源:tasktemplate.class.php
示例16: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[14]['table'] = $this->getTable();
$tab[14]['field'] = 'is_helpdesk_default';
$tab[14]['name'] = __('Default for tickets');
$tab[14]['datatype'] = 'bool';
$tab[14]['massiveaction'] = false;
$tab[15]['table'] = $this->getTable();
$tab[15]['field'] = 'is_mail_default';
$tab[15]['name'] = __('Default for mail recipients');
$tab[15]['datatype'] = 'bool';
$tab[15]['massiveaction'] = false;
return $tab;
}
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:15,代码来源:requesttype.class.php
示例17: getSearchOptions
function getSearchOptions()
{
global $LANG;
$tab = parent::getSearchOptions();
$tab[14]['table'] = $this->getTable();
$tab[14]['field'] = 'is_helpdesk_default';
$tab[14]['name'] = $LANG['tracking'][9];
$tab[14]['datatype'] = 'bool';
$tab[14]['massiveaction'] = false;
$tab[15]['table'] = $this->getTable();
$tab[15]['field'] = 'is_mail_default';
$tab[15]['name'] = $LANG['tracking'][10];
$tab[15]['datatype'] = 'bool';
$tab[15]['massiveaction'] = false;
return $tab;
}
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:16,代码来源:requesttype.class.php
示例18: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[14]['table'] = $this->getTable();
$tab[14]['field'] = 'short_name';
$tab[14]['name'] = __('Short name', 'resources');
$tab[15]['table'] = $this->getTable();
$tab[15]['field'] = 'is_active';
$tab[15]['name'] = __('Active');
$tab[15]['datatype'] = 'bool';
$tab[16]['table'] = $this->getTable();
$tab[16]['field'] = 'is_leaving_state';
$tab[16]['name'] = __("Employment state at leaving's resource", "resources");
$tab[16]['datatype'] = 'bool';
$tab[16]['massiveaction'] = false;
return $tab;
}
开发者ID:geldarr,项目名称:hack-space,代码行数:17,代码来源:employmentstate.class.php
示例19: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[2303]['table'] = $this->getTable();
$tab[2303]['field'] = 'color';
$tab[2303]['name'] = __('Associated color', 'projet');
$tab[2303]['datatype'] = 'text';
$tab[2304]['table'] = $this->getTable();
$tab[2304]['field'] = 'for_dependency';
$tab[2304]['name'] = __('Finished task', 'projet');
$tab[2304]['datatype'] = 'bool';
$tab[2305]['table'] = $this->getTable();
$tab[2305]['field'] = 'for_planning';
$tab[2305]['name'] = __('Used for planning', 'projet');
$tab[2305]['datatype'] = 'bool';
return $tab;
}
开发者ID:geldarr,项目名称:hack-space,代码行数:17,代码来源:taskstate.class.php
示例20: getSearchOptions
/**
* Get search function for the class
*
* @return array of search option
**/
function getSearchOptions()
{
global $LANG;
$tab = parent::getSearchOptions();
$tab[3]['table'] = $this->getTable();
$tab[3]['field'] = 'ext';
$tab[3]['name'] = $LANG['document'][9];
$tab[6]['table'] = $this->getTable();
$tab[6]['field'] = 'icon';
$tab[6]['name'] = $LANG['document'][10];
$tab[6]['massiveaction'] = false;
$tab[4]['table'] = $this->getTable();
$tab[4]['field'] = 'mime';
$tab[4]['name'] = $LANG['document'][4];
$tab[5]['table'] = $this->getTable();
$tab[5]['field'] = 'is_uploadable';
$tab[5]['name'] = $LANG['document'][15];
$tab[5]['datatype'] = 'bool';
return $tab;
}
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:25,代码来源:documenttype.class.php
注:本文中的CommonDropdown类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论