本文整理汇总了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');
}
}
}
示例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();
}