remote
class remote extends driver
Handles avatars hosted remotely
Properties
protected string | $name | Avatar driver name |
from driver |
protected config | $config | Current board configuration |
from driver |
protected FastImageSize | $imagesize | from driver | |
protected string | $phpbb_root_path | Current $phpbb_root_path |
from driver |
protected string | $php_ext | Current $php_ext |
from driver |
protected path_helper | $path_helper | Path Helper |
from driver |
protected driver_interface | $cache | Cache driver |
from driver |
protected array | $allowed_extensions | Array of allowed avatar image extensions Array is used for setting the allowed extensions in the fileupload class and as a base for a regex of allowed extensions, which will be formed by imploding the array with a "|". |
from driver |
Methods
Construct a driver object
Returns custom html if it is needed for displaying this avatar
Returns the config name of the driver. To be used in accessing the CONFIG variables.
Get the avatar url and dimensions
Prepare form for changing the settings of this avatar
Process form data
Get the avatar driver's template name
Details
in
driver at line 85
__construct(config $config, FastImageSize $imagesize, string $phpbb_root_path, string $php_ext, path_helper $path_helper, driver_interface $cache = null)
Construct a driver object
in
driver at line 98
string
get_custom_html(user $user, array $row, string $alt = '')
Returns custom html if it is needed for displaying this avatar
in
driver at line 106
array
prepare_form_acp(user $user)
Prepare form for changing the acp settings of this avatar
in
driver at line 114
bool
delete(array $row)
Delete avatar
in
driver at line 122
string
get_name()
Returns the name of the driver.
in
driver at line 130
string
get_config_name()
Returns the config name of the driver. To be used in accessing the CONFIG variables.
in
driver at line 138
string
get_acp_template_name()
Get the avatar driver's template name (ACP)
in
driver at line 148
set_name(string $name)
Sets the name of the driver.
at line 24
array
get_data(array $row)
Get the avatar url and dimensions
at line 36
bool
prepare_form(request $request, template $template, user $user, array $row, array $error)
Prepare form for changing the settings of this avatar
at line 50
array
process_form(request $request, template $template, user $user, array $row, array $error)
Process form data
at line 232
string
get_template_name()
Get the avatar driver's template name