/** * Retrieves the member groups id for Forum members * New members from phpbb get imported to these groups * * @param bool $raw * @return mixed|null */ public function getForumMemberGroupIds($raw = false) { $objPage = PageModel::findOneByType('phpbb_forum'); if ($objPage->phpbb_default_groups) { return $raw === true ? $objPage->phpbb_default_groups : deserialize($objPage->phpbb_default_groups); } return $raw === true ? null : []; }
/** * * @Route("/layout") */ public function layoutAction() { $this->validateRequest(); $objPage = PageModel::findOneByType('phpbb_forum'); // Set the correct current page for navigation Environment::set('relativeRequest', $this->container->get('phpbb_bridge.connector')->getBridgeConfig('forum_pageId') . $GLOBALS['TL_CONFIG']['urlSuffix']); $response = $this->frontendIndex->run(); if ($objPage instanceof PageModel) { $page = new Forum(); Input::setGet('format', 'json'); $response = $page->getResponse($objPage); } return $response; }