本文整理匯總了PHP中CommonDropdown類的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDropdown類的具體用法?PHP CommonDropdown怎麽用?PHP CommonDropdown使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了CommonDropdown類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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;
}
示例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;
}
示例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();
}
示例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;
}
示例5: getSearchOptions
function getSearchOptions()
{
$tab = parent::getSearchOptions();
$tab[14]['table'] = $this->getTable();
$tab[14]['field'] = 'code';
$tab[14]['name'] = __('Code', 'resources');
return $tab;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}