當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CommonDropdown類代碼示例

本文整理匯總了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;
 }
開發者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


注:本文中的CommonDropdown類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。