public function __construct($view, $title_page) { parent::__construct($view); $lang = LangLoader::get('common', 'forum'); $this->set_title($lang['module_title']); $this->add_link(LangLoader::get_message('categories.management', 'categories-common'), ForumUrlBuilder::manage_categories()); $this->add_link(LangLoader::get_message('category.add', 'categories-common'), ForumUrlBuilder::add_category()); $this->add_link($lang['forum.ranks_management'], ForumUrlBuilder::manage_ranks()); $this->add_link($lang['forum.actions.add_rank'], ForumUrlBuilder::add_rank()); $this->add_link(LangLoader::get_message('configuration', 'admin-common'), ForumUrlBuilder::configuration()); $env = $this->get_graphical_environment(); $env->set_page_title($title_page, $lang['module_title']); }
public function get_actions_tree_links() { $lang = LangLoader::get('common', 'forum'); $tree = new ModuleTreeLinks(); $manage_categories_link = new AdminModuleLink(LangLoader::get_message('categories.manage', 'categories-common'), ForumUrlBuilder::manage_categories()); $manage_categories_link->add_sub_link(new AdminModuleLink(LangLoader::get_message('categories.manage', 'categories-common'), ForumUrlBuilder::manage_categories())); $manage_categories_link->add_sub_link(new AdminModuleLink(LangLoader::get_message('category.add', 'categories-common'), ForumUrlBuilder::add_category())); $tree->add_link($manage_categories_link); $manage_ranks_link = new AdminModuleLink($lang['forum.manage_ranks'], ForumUrlBuilder::manage_ranks()); $manage_ranks_link->add_sub_link(new AdminModuleLink($lang['forum.manage_ranks'], ForumUrlBuilder::manage_ranks())); $manage_ranks_link->add_sub_link(new AdminModuleLink($lang['forum.actions.add_rank'], ForumUrlBuilder::add_rank())); $tree->add_link($manage_ranks_link); $tree->add_link(new AdminModuleLink(LangLoader::get_message('configuration', 'admin-common'), ForumUrlBuilder::configuration())); $tree->add_link(new AdminModuleLink(LangLoader::get_message('moderation_panel', 'main'), ForumUrlBuilder::moderation_panel())); return $tree; }