当前位置: 首页>>代码示例>>PHP>>正文


PHP MenuAdmin::addDevelopmentItem方法代码示例

本文整理汇总了PHP中Piwik\Menu\MenuAdmin::addDevelopmentItem方法的典型用法代码示例。如果您正苦于以下问题:PHP MenuAdmin::addDevelopmentItem方法的具体用法?PHP MenuAdmin::addDevelopmentItem怎么用?PHP MenuAdmin::addDevelopmentItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Piwik\Menu\MenuAdmin的用法示例。


在下文中一共展示了MenuAdmin::addDevelopmentItem方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     $menu->registerMenuIcon('CoreAdminHome_MenuDevelopment', 'icon-admin-development');
     $menu->registerMenuIcon('CoreAdminHome_MenuDiagnostic', 'icon-admin-diagnostic');
     $menu->registerMenuIcon('CorePluginsAdmin_MenuPlatform', 'icon-admin-platform');
     $menu->registerMenuIcon('General_Settings', 'icon-admin-settings');
     $menu->registerMenuIcon('CoreAdminHome_Administration', 'icon-admin-administration');
     if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) {
         $menu->addDevelopmentItem('UI Demo', $this->urlForAction('demo'));
     }
 }
开发者ID:mgou-net,项目名称:piwik,代码行数:11,代码来源:Menu.php

示例2: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     $menu->addPersonalItem(null, array(), 1, false);
     $menu->addSystemItem(null, array(), 2, false);
     $menu->addMeasurableItem(null, array(), $order = 3);
     $menu->addPlatformItem(null, array(), 4, false);
     $menu->addDiagnosticItem(null, array(), $order = 5);
     $menu->addDevelopmentItem(null, array(), $order = 40);
     if (Piwik::hasUserSuperUserAccess()) {
         $menu->addSystemItem('General_GeneralSettings', $this->urlForAction('generalSettings'), $order = 5);
     }
     if (!Piwik::isUserIsAnonymous()) {
         $menu->addMeasurableItem('CoreAdminHome_TrackingCode', $this->urlForAction('trackingCodeGenerator'), $order = 12);
     }
 }
开发者ID:piwik,项目名称:piwik,代码行数:15,代码来源:Menu.php

示例3: 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

示例4: 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

示例5: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) {
         $menu->addDevelopmentItem('UI demo', $this->urlForAction('demo'));
     }
 }
开发者ID:CaptainSharf,项目名称:SSAD_Project,代码行数:6,代码来源:Menu.php

示例6: configureAdminMenu

 public function configureAdminMenu(MenuAdmin $menu)
 {
     if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) {
         $menu->addDevelopmentItem('LanguagesManager_TranslationSearch', array('module' => 'LanguagesManager', 'action' => 'searchTranslation'));
     }
 }
开发者ID:emersonmatsumoto,项目名称:piwik,代码行数:6,代码来源:Menu.php


注:本文中的Piwik\Menu\MenuAdmin::addDevelopmentItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。