class topic_form extends form

Class topic_form Form used to send topics as notification emails

Properties

protected auth $auth from  form
protected config $config from  form
protected driver_interface $db from  form
protected message $message from  form
protected user $user from  form
protected string $phpbb_root_path from  form
protected string $phpEx from  form
protected array $errors from  form
protected bool $cc_sender from  form
protected string $body from  form
protected int $topic_id
protected array $topic_row
protected string $recipient_address
protected string $recipient_name
protected string $recipient_lang

Methods

__construct(auth $auth, config $config, driver_interface $db, user $user, string $phpbb_root_path, string $phpEx)

Construct

from  form
string
get_page_title()

Returns the title for the email form page

from  form
string
get_template_file()

Returns the file name of the form template

from  form
false|string
check_allow()

{inheritDoc}

string
get_return_message()

{inheritDoc}

null
bind(request_interface $request)

{inheritDoc}

null
submit(messenger $messenger)

{inheritDoc}

null
render(template $template)

{inheritDoc}

false|array
get_topic_row(int $topic_id)

Get the data of the topic

Details

in form at line 54
__construct(auth $auth, config $config, driver_interface $db, user $user, string $phpbb_root_path, string $phpEx)

Construct

Parameters

auth $auth
config $config
driver_interface $db
user $user
string $phpbb_root_path
string $phpEx

in form at line 72
string get_page_title()

Returns the title for the email form page

Return Value

string

in form at line 82
string get_template_file()

Returns the file name of the form template

Return Value

string

at line 54
false|string check_allow()

{inheritDoc}

Return Value

false|string

Error string if not allowed, false otherwise

at line 143
string get_return_message()

{inheritDoc}

Return Value

string

at line 96
null bind(request_interface $request)

{inheritDoc}

Parameters

request_interface $request

Return Value

null

at line 111
null submit(messenger $messenger)

{inheritDoc}

Parameters

messenger $messenger

Return Value

null

at line 151
null render(template $template)

{inheritDoc}

Parameters

template $template

Return Value

null

at line 39
protected false|array get_topic_row(int $topic_id)

Get the data of the topic

Parameters

int $topic_id

Return Value

false|array

false if the topic does not exist, array otherwise