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


PHP CommonDBTM::getMenuContent方法代碼示例

本文整理匯總了PHP中CommonDBTM::getMenuContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDBTM::getMenuContent方法的具體用法?PHP CommonDBTM::getMenuContent怎麽用?PHP CommonDBTM::getMenuContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonDBTM的用法示例。


在下文中一共展示了CommonDBTM::getMenuContent方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getMenuContent

 public static function getMenuContent()
 {
     global $CFG_GLPI;
     $menu = parent::getMenuContent();
     $menu['page'] = PluginOrderMenu::getSearchURL(false);
     $menu['links']['add'] = null;
     $menu['links']['search'] = null;
     $menu['links']['config'] = self::getFormURL(false);
     return $menu;
 }
開發者ID:pluginsGLPI,項目名稱:order,代碼行數:10,代碼來源:config.class.php

示例2: getMenuContent

 static function getMenuContent()
 {
     global $CFG_GLPI;
     $menu = parent::getMenuContent();
     $image = '<img src="' . $CFG_GLPI['root_doc'] . '/plugins/formcreator/pics/check.png"
               title="' . __('Forms waiting for validation', 'formcreator') . '"
               alt="' . __('Forms waiting for validation', 'formcreator') . '">';
     $menu['links']['search'] = PluginFormcreatorFormList::getSearchURL(false);
     $menu['links']['config'] = PluginFormcreatorForm::getSearchURL(false);
     $menu['links'][$image] = PluginFormcreatorFormanswer::getSearchURL(false);
     return $menu;
 }
開發者ID:jcr0ch4,項目名稱:formcreator,代碼行數:12,代碼來源:form.class.php

示例3: getMenuContent

 /**
  *  @see CommonGLPI::getMenuContent()
  *
  *  @since version 0.85
  **/
 static function getMenuContent()
 {
     global $CFG_GLPI;
     $menu = array();
     if (get_called_class() == 'CommonDropdown') {
         $menu['title'] = static::getTypeName(Session::getPluralNumber());
         $menu['shortcut'] = 'n';
         $menu['page'] = '/front/dropdown.php';
         $menu['config']['default'] = '/front/dropdown.php';
         $dps = Dropdown::getStandardDropdownItemTypes();
         $menu['options'] = array();
         foreach ($dps as $tab) {
             foreach ($tab as $key => $val) {
                 if ($tmp = getItemForItemtype($key)) {
                     $menu['options'][$key]['title'] = $val;
                     $menu['options'][$key]['page'] = $tmp->getSearchURL(false);
                     $menu['options'][$key]['links']['search'] = $tmp->getSearchURL(false);
                     if ($tmp->canCreate()) {
                         $menu['options'][$key]['links']['add'] = $tmp->getFormURL(false);
                     }
                 }
             }
         }
         if (count($menu['options'])) {
             return $menu;
         }
     } else {
         return parent::getMenuContent();
     }
     return false;
 }
開發者ID:pvasener,項目名稱:glpi,代碼行數:36,代碼來源:commondropdown.class.php

示例4: getMenuContent

 public static function getMenuContent()
 {
     global $CFG_GLPI;
     $menu = parent::getMenuContent();
     $menu['links']['search'] = PluginNewsAlert::getSearchURL(false);
     return $menu;
 }
開發者ID:paisdelconocimiento,項目名稱:glpi-smartcities,代碼行數:7,代碼來源:alert.class.php


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