本文整理匯總了PHP中Help::display方法的典型用法代碼示例。如果您正苦於以下問題:PHP Help::display方法的具體用法?PHP Help::display怎麽用?PHP Help::display使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Help
的用法示例。
在下文中一共展示了Help::display方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: elseif
require HORDE_TEMPLATES . '/help/index.inc';
} else {
require HORDE_TEMPLATES . '/common-header.inc';
if ($show == 'menu') {
require HORDE_TEMPLATES . '/help/menu.inc';
} elseif ($show == 'about') {
require $fileroot . '/lib/version.php';
eval('$version = "' . ucfirst($module) . ' " . ' . String::upper($module) . '_VERSION;');
$credits = Util::bufferOutput('include', $fileroot . '/docs/CREDITS');
$credits = String::convertCharset($credits, 'iso-8859-1', NLS::getCharset());
require HORDE_TEMPLATES . '/help/about.inc';
} else {
require HORDE_TEMPLATES . '/help/header.inc';
$help = new Help(HELP_SOURCE_FILE, array($help_file, $help_file_fallback));
if ($show == 'entry' && !empty($topic)) {
$help->lookup($topic);
$help->display();
} else {
$topics = $help->topics();
foreach ($topics as $id => $title) {
$link = Horde::url($registry->getParam('webroot', 'horde') . '/services/help/');
$link = Util::addParameter($link, array('show' => 'entry', 'module' => $module, 'topic' => $id));
echo Horde::link($link, '', 'helpitem');
echo $title . "</a><br />\n";
}
}
$help->cleanup();
require HORDE_TEMPLATES . '/help/footer.inc';
}
}
require HORDE_TEMPLATES . '/common-footer.inc';