本文整理匯總了PHP中PageLayout::setTabNavigation方法的典型用法代碼示例。如果您正苦於以下問題:PHP PageLayout::setTabNavigation方法的具體用法?PHP PageLayout::setTabNavigation怎麽用?PHP PageLayout::setTabNavigation使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PageLayout
的用法示例。
在下文中一共展示了PageLayout::setTabNavigation方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: before_filter
/**
*
**/
public function before_filter(&$action, &$args)
{
parent::before_filter($action, $args);
$GLOBALS['perm']->check('autor');
$layout = $GLOBALS['template_factory']->open('layouts/base');
$this->set_layout($layout);
Navigation::activateItem('/links/settings/oauth');
PageLayout::setTabNavigation('/links/settings');
PageLayout::setTitle(_('Applikationen'));
$this->store = new OAuthConsumer();
$this->types = array('website' => _('Website'), 'program' => _('Herkömmliches Desktopprogramm'), 'app' => _('Mobile App'));
}
示例2: before_filter
/**
* Callback function being called before an action is executed.
*/
function before_filter(&$action, &$args)
{
parent::before_filter($action, $args);
if (Request::isXhr()) {
$this->set_layout(null);
$this->set_content_type('text/html;Charset=windows-1252');
}
Navigation::activateItem('/start');
PageLayout::setTabNavigation(NULL);
// disable display of tabs
PageLayout::setHelpKeyword("Basis.Startseite");
// set keyword for new help
PageLayout::setTitle(_('Startseite'));
}
示例3: before_filter
/**
* common tasks for all actions
*/
public function before_filter(&$action, &$args)
{
$this->with_session = true;
parent::before_filter($action, $args);
// Siteinfo-Class is defined in models/siteinfo.php
$this->si = new Siteinfo();
$this->populate_ids($args);
$this->add_navigation($action);
if (is_object($GLOBALS['perm']) && $GLOBALS['perm']->have_perm('root')) {
$this->setupSidebar();
} else {
$action = 'show';
}
PageLayout::setTitle(_('Impressum'));
PageLayout::setTabNavigation('/footer/siteinfo');
}
示例4: first_decision
function first_decision($userid) {
$vis_cmd = Request::option('vis_cmd');
$vis_state = Request::option('vis_state');
$user_language = getUserLanguagePath($userid);
if ($vis_cmd == "apply" && ($vis_state == "global" || $vis_state == "yes" || $vis_state == "no")) {
$query = "UPDATE auth_user_md5 SET visible = ? WHERE user_id = ?";
$statement = DBManager::get()->prepare($query);
$statement->execute(array($vis_state, $userid));
return;
}
$query = "SELECT visible FROM auth_user_md5 WHERE user_id = ?";
$statement = DBManager::get()->prepare($query);
$statement->execute(array($userid));
$visiblity = $statement->fetchColumn();
if ($visiblity != 'unknown') {
return;
}
PageLayout::setTitle(_('Bitte wählen Sie Ihren Sichtbarkeitsstatus aus!'));
PageLayout::setTabNavigation(NULL);
// avoid recursion when loading the header
$GLOBALS['USER_VISIBILITY_CHECK'] = false;
$template = $GLOBALS['template_factory']->open("../locale/$user_language/LC_HELP/visibility_decision.php");
$template->set_layout('layouts/base_without_infobox');
echo $template->render();
page_close();
die;
}
示例5: closeObject
closeObject();
include 'lib/seminar_open.php';
// initialise Stud.IP-Session
// if new start page is in use, redirect there (if logged in)
if ($auth->is_authenticated() && $user->id != 'nobody') {
header('Location: ' . URLHelper::getURL('dispatch.php/start'));
die;
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * L O G I N - P A G E ( N O B O D Y - U S E R ) * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
PageLayout::setHelpKeyword("Basis.Startseite");
// set keyword for new help
PageLayout::setTitle(_("Startseite"));
Navigation::activateItem('/start');
PageLayout::setTabNavigation(NULL);
// disable display of tabs
// Start of Output
include 'lib/include/html_head.inc.php';
// Output of html head
include 'lib/include/header.php';
$index_nobody_template = $GLOBALS['template_factory']->open('index_nobody');
$index_nobody_template->set_attributes(array('num_active_courses' => count_table_rows('seminare'), 'num_registered_users' => count_table_rows('auth_user_md5'), 'num_online_users' => get_users_online_count(10)));
if (Request::get('logout')) {
$index_nobody_template->set_attribute('logout', true);
}
echo '<div><div class="index_container">';
echo $index_nobody_template->render();
$layout = $GLOBALS['template_factory']->open('shared/index_box');
// Prüfen, ob PortalPlugins vorhanden sind.
$portalplugins = PluginEngine::getPlugins('PortalPlugin');