for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* Reduce Search Index [RSI]. An extension for the phpBB Forum Software package.
* @copyright (c) 2020, Dark❶, https://dark1.tech
* @license GNU General Public License, version 2 (GPL-2.0)
*/
namespace dark1\reducesearchindex\acp;
* Reduce Search Index [RSI] ACP module.
class main_module
{
public $page_title;
public $tpl_name;
public $u_action;
* Main ACP module
* @param int $id The module ID
* @param string $mode The module mode
* @throws \Exception
public function main($id, $mode)
global $phpbb_container;
/** @var \dark1\reducesearchindex\controller\acp_controller $acp_controller */
$acp_controller = $phpbb_container->get('dark1.reducesearchindex.controller.acp');
// Load the display handle in our ACP controller
$acp_controller->set_data($id, $mode, $this->u_action);
// Get data from our ACP controller
$acp_get_data = $acp_controller->get_data();
// Load a template from adm/style for our ACP page
$this->tpl_name = $acp_get_data['tpl_name'];
// Set the page title for our ACP page
$this->page_title = $acp_get_data['page_title'];
$acp_controller->display();
}