class upload extends driver
Handles avatars uploaded to the board
Methods
__construct(config $config, string $phpbb_root_path, string $php_ext, filesystem_interface $filesystem, path_helper $path_helper, dispatcher_interface $dispatcher, factory $files_factory, driver_interface $cache = null)
Construct a driver object |
||
string |
get_custom_html(user $user, array $row, string $alt = '')
Returns custom html if it is needed for displaying this avatar |
from driver |
array |
prepare_form_acp(user $user)
Prepare form for changing the acp settings of this avatar |
|
bool |
delete(array $row)
Delete avatar |
|
string |
get_name()
Returns the name of the driver. |
from driver |
string |
get_config_name()
Returns the config name of the driver. |
from driver |
string |
get_acp_template_name()
Get the avatar driver's template name (ACP) |
from driver |
set_name(string $name)
Sets the name of the driver. |
from driver | |
array |
get_data(array $row)
Get the avatar url and dimensions |
|
bool |
prepare_form(request $request, template $template, user $user, array $row, array $error)
Prepare form for changing the settings of this avatar |
|
array |
process_form(request $request, template $template, user $user, array $row, array $error)
Process form data |
|
string |
get_template_name()
Get the avatar driver's template name |
Details
at line 48
public
__construct(config $config, string $phpbb_root_path, string $php_ext, filesystem_interface $filesystem, path_helper $path_helper, dispatcher_interface $dispatcher, factory $files_factory, driver_interface $cache = null)
Construct a driver object
in driver at line 98
public string
get_custom_html(user $user, array $row, string $alt = '')
Returns custom html if it is needed for displaying this avatar
at line 259
public array
prepare_form_acp(user $user)
Prepare form for changing the acp settings of this avatar
at line 271
public bool
delete(array $row)
Delete avatar
in driver at line 122
public string
get_name()
Returns the name of the driver.
in driver at line 130
public string
get_config_name()
Returns the config name of the driver.
To be used in accessing the CONFIG variables.
in driver at line 138
public string
get_acp_template_name()
Get the avatar driver's template name (ACP)
in driver at line 148
public
set_name(string $name)
Sets the name of the driver.
at line 63
public array
get_data(array $row)
Get the avatar url and dimensions
at line 77
public bool
prepare_form(request $request, template $template, user $user, array $row, array $error)
Prepare form for changing the settings of this avatar
at line 95
public array
process_form(request $request, template $template, user $user, array $row, array $error)
Process form data
at line 317
public string
get_template_name()
Get the avatar driver's template name