lang}/mods/portal/" */ public $language = array( 'vendor' => 'dmzx/mchat', 'file' => 'common', ); /** @var \phpbb\config\config */ protected $config; /** @var \phpbb\template\template */ protected $template; /** * Constructor for clock module * * @param \phpbb\config\config $config phpBB config * @param \phpbb\template\template $template phpBB template */ public function __construct($config, $template) { $this->config = $config; $this->template = $template; } public function get_template_center($module_id) { $this->template->assign_vars(array( 'S_DISPLAY_MCHAT_PORTAL_PLACEHOLDER' => ($this->config['board3_mchat_' . $module_id]) ? true : false, )); return '@dmzx_mchat/mchat_portal.html'; } public function get_template_acp($module_id) { return array( 'title' => 'PORTAL_MCHAT_TITLE', 'vars' => array( ) ); } /** * API functions */ public function install($module_id) { $this->config->set('board3_mchat_' . $module_id, 1); return true; } public function uninstall($module_id, $db) { $this->config->delete('board3_mchat_' . $module_id); return true; } }