[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/phpbb/report/controller/ -> report.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 325 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

report:: (4 methods):
  __construct()
  handle()
  assign_template_data()
  check_captcha()


Class: report  - X-Ref

__construct(\phpbb\config\config $config, \phpbb\user $user, \phpbb\template\template $template, \phpbb\controller\helper $helper, \phpbb\request\request_interface $request, \phpbb\captcha\factory $captcha_factory, \phpbb\report\handler_factory $report_factory, \phpbb\report\report_reason_list_provider $ui_provider, $phpbb_root_path, $php_ext)   X-Ref


handle($id, $mode)   X-Ref
Controller for /path_to_entities/{id}/report routes

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

param: int        $id        ID of the entity to report
param: string    $mode
return: \Symfony\Component\HttpFoundation\Response a Symfony response object

assign_template_data($mode, $id, $reason_id, $report_text, $user_notify, $error = array()   X-Ref
Assigns template variables

param: int        $mode
param: int        $id
param: int        $reason_id
param: string    $report_text
param: mixed    $user_notify
param: array    $error
param: string    $s_hidden_fields
param: mixed    $captcha
return: null

check_captcha($captcha)   X-Ref
Check CAPTCHA

param: object    $captcha    A phpBB CAPTCHA object
return: array    template variables which ensures that CAPTCHA's work correctly



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1