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


PHP Settings::getConfigSections方法代碼示例

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


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

示例1: componentLeftmenu

 public function componentLeftmenu()
 {
     $config_sections = framework\Settings::getConfigSections(framework\Context::getI18n());
     $breadcrumblinks = array();
     foreach ($config_sections as $key => $sections) {
         foreach ($sections as $section) {
             if ($key == framework\Settings::CONFIGURATION_SECTION_MODULES) {
                 $url = is_array($section['route']) ? make_url($section['route'][0], $section['route'][1]) : make_url($section['route']);
                 $breadcrumblinks[] = array('url' => $url, 'title' => $section['description']);
             } else {
                 $breadcrumblinks[] = array('url' => make_url($section['route']), 'title' => $section['description']);
             }
         }
     }
     $this->breadcrumblinks = $breadcrumblinks;
     $this->config_sections = $config_sections;
     if ($this->selected_section == framework\Settings::CONFIGURATION_SECTION_MODULES) {
         if (framework\Context::getRouting()->getCurrentRouteName() == 'configure_modules') {
             $this->selected_subsection = 'core';
         } else {
             $this->selected_subsection = framework\Context::getRequest()->getParameter('config_module');
         }
     }
 }
開發者ID:founderio,項目名稱:thebuggenie,代碼行數:24,代碼來源:Components.php

示例2: runIndex

 /**
  * Configuration main page
  *
  * @param framework\Request $request
  */
 public function runIndex(framework\Request $request)
 {
     $this->config_sections = framework\Settings::getConfigSections(framework\Context::getI18n());
     $this->outdated_modules = framework\Context::getOutdatedModules();
 }
開發者ID:nrensen,項目名稱:thebuggenie,代碼行數:10,代碼來源:Main.php


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