phpBB API Documentation
Class

phpbb\report\controller\report

class report

Methods

__construct(config $config, user $user, template $template, helper $helper, request_interface $request, factory $captcha_factory, handler_factory $report_factory, report_reason_list_provider $ui_provider, $phpbb_root_path, $php_ext)

Response handle(int $id, string $mode)

Controller for /pathtoentities/{id}/report routes

Details

at line 71
public __construct(config $config, user $user, template $template, helper $helper, request_interface $request, factory $captcha_factory, handler_factory $report_factory, report_reason_list_provider $ui_provider, $phpbb_root_path, $php_ext)

Parameters

config $config
user $user
template $template
helper $helper
request_interface $request
factory $captcha_factory
handler_factory $report_factory
report_reason_list_provider $ui_provider
$phpbb_root_path
$php_ext

at line 97
public Response handle(int $id, string $mode)

Controller for /pathtoentities/{id}/report routes

Because of how phpBB organizes routes $mode must be set in the route config.

Parameters

int $id ID of the entity to report
string $mode

Return Value

Response a Symfony response object

Exceptions

http_exception when $mode or $id is invalid for some reason