本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4: getMenuContent
public static function getMenuContent()
{
global $CFG_GLPI;
$menu = parent::getMenuContent();
$menu['links']['search'] = PluginNewsAlert::getSearchURL(false);
return $menu;
}