本文整理汇总了PHP中TBGSettings::getConfigSections方法的典型用法代码示例。如果您正苦于以下问题:PHP TBGSettings::getConfigSections方法的具体用法?PHP TBGSettings::getConfigSections怎么用?PHP TBGSettings::getConfigSections使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TBGSettings
的用法示例。
在下文中一共展示了TBGSettings::getConfigSections方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: componentLeftmenu
public function componentLeftmenu()
{
$config_sections = TBGSettings::getConfigSections(TBGContext::getI18n());
$breadcrumblinks = array();
foreach ($config_sections as $key => $sections) {
foreach ($sections as $section) {
if ($key == TBGSettings::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 == TBGSettings::CONFIGURATION_SECTION_MODULES) {
if (TBGContext::getRouting()->getCurrentRouteName() == 'configure_modules') {
$this->selected_subsection = 'core';
} else {
$this->selected_subsection = TBGContext::getRequest()->getParameter('config_module');
}
}
}
示例2: runIndex
/**
* Configuration main page
*
* @param TBGRequest $request
*/
public function runIndex(TBGRequest $request)
{
$this->config_sections = TBGSettings::getConfigSections(TBGContext::getI18n());
$this->outdated_modules = TBGContext::getOutdatedModules();
}