コード例 #1
0
ファイル: Components.php プロジェクト: founderio/thebuggenie
 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');
         }
     }
 }
コード例 #2
0
ファイル: Main.php プロジェクト: nrensen/thebuggenie
 /**
  * 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();
 }