本文整理匯總了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();
}