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


PHP MenuAdmin::addSettingsItem方法代碼示例

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


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

示例1: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     $hasAdminAccess = Piwik::isUserHasSomeAdminAccess();
     if ($hasAdminAccess) {
         $menu->addManageItem(null, "", $order = 1);
         $menu->addSettingsItem(null, "", $order = 5);
         $menu->addDiagnosticItem(null, "", $order = 10);
         $menu->addDevelopmentItem(null, "", $order = 15);
         $menu->addSettingsItem('CoreAdminHome_MenuGeneralSettings', $this->urlForAction('generalSettings'), $order = 6);
         $menu->addManageItem('CoreAdminHome_TrackingCode', $this->urlForAction('trackingCodeGenerator'), $order = 4);
     }
     if (SettingsManager::hasPluginsSettingsForCurrentUser()) {
         $menu->addSettingsItem('CoreAdminHome_PluginSettings', $this->urlForAction('pluginSettings'), $order = 7);
     }
 }
開發者ID:a4tunado,項目名稱:piwik,代碼行數:15,代碼來源:Menu.php

示例2: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     $hasAdminAccess = Piwik::isUserHasSomeAdminAccess();
     if ($hasAdminAccess) {
         $menu->addManageItem(null, array(), $order = 1);
         $menu->addSettingsItem(null, array(), $order = 5);
         $menu->addDiagnosticItem(null, array(), $order = 10);
         $menu->addDevelopmentItem(null, array(), $order = 15);
         if (Piwik::hasUserSuperUserAccess()) {
             $menu->addSettingsItem('General_General', $this->urlForAction('generalSettings'), $order = 6);
         }
     }
     if (Piwik::hasUserSuperUserAccess() && SettingsManager::hasSystemPluginsSettingsForCurrentUser()) {
         $menu->addSettingsItem('CoreAdminHome_PluginSettings', $this->urlForAction('adminPluginSettings'), $order = 7);
     }
 }
開發者ID:drabberhorizon,項目名稱:ActiveNative,代碼行數:16,代碼來源:Menu.php

示例3: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     if (Piwik::isUserHasSomeAdminAccess()) {
         $menu->addManageItem('UsersManager_MenuUsers', $this->urlForAction('index'), $order = 2);
     }
     if (Piwik::hasUserSuperUserAccess() && API::getInstance()->getSitesAccessFromUser('anonymous')) {
         $menu->addSettingsItem('UsersManager_AnonymousUser', $this->urlForAction('anonymousSettings'), $order = 20);
     }
 }
開發者ID:FluentDevelopment,項目名稱:piwik,代碼行數:9,代碼來源:Menu.php

示例4: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     if (Piwik::isUserHasSomeAdminAccess()) {
         $menu->addSettingsItem('PrivacyManager_MenuPrivacySettings', array('module' => 'PrivacyManager', 'action' => 'privacySettings'), $order = 7);
     }
 }
開發者ID:emersonmatsumoto,項目名稱:piwik,代碼行數:6,代碼來源:Menu.php

示例5: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     if (Piwik::hasUserSuperUserAccess()) {
         $menu->addSettingsItem('LDAP', $this->urlForAction('admin'), $order = 30);
     }
 }
開發者ID:heiglandreas,項目名稱:plugin-LoginLdap,代碼行數:6,代碼來源:Menu.php

示例6: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     if (Piwik::isUserHasSomeAdminAccess()) {
         $menu->addSettingsItem('Custom OptOut', $this->urlForDefaultAction());
     }
 }
開發者ID:peterbo,項目名稱:PiwikCustomOptOut,代碼行數:6,代碼來源:Menu.php

示例7: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     //         if (UserCountry::isGeoLocationAdminEnabled() && Piwik::hasUserSuperUserAccess()) {
     $menu->addSettingsItem('GeoIpChain', $this->urlForAction('adminIndex'), $order = 9999);
     //         }
 }
開發者ID:ThaDafinser,項目名稱:Piwik-GeoIpChain,代碼行數:6,代碼來源:Menu.php


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