本文整理匯總了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'));
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例5: configureAdminMenu
public function configureAdminMenu(MenuAdmin $menu)
{
if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) {
$menu->addDevelopmentItem('UI demo', $this->urlForAction('demo'));
}
}
示例6: configureAdminMenu
public function configureAdminMenu(MenuAdmin $menu)
{
if (Development::isEnabled() && Piwik::isUserHasSomeAdminAccess()) {
$menu->addDevelopmentItem('LanguagesManager_TranslationSearch', array('module' => 'LanguagesManager', 'action' => 'searchTranslation'));
}
}