abstract class driver implements driver_interface
Base class for avatar drivers
Methods
__construct(config $config, FastImageSize $imagesize, string $phpbb_root_path, string $php_ext, path_helper $path_helper, 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 |
|
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. |
|
string |
get_config_name()
Returns the config name of the driver. |
|
string |
get_acp_template_name()
Get the avatar driver's template name (ACP) |
|
set_name(string $name)
Sets the name of the driver. |
Details
at line 85
public
__construct(config $config, FastImageSize $imagesize, string $phpbb_root_path, string $php_ext, path_helper $path_helper, driver_interface $cache = null)
Construct a driver object
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 106
public array
prepare_form_acp(user $user)
Prepare form for changing the acp settings of this avatar
at line 114
public bool
delete(array $row)
Delete avatar
at line 122
public string
get_name()
Returns the name of the driver.
at line 130
public string
get_config_name()
Returns the config name of the driver.
To be used in accessing the CONFIG variables.
at line 138
public string
get_acp_template_name()
Get the avatar driver's template name (ACP)
at line 148
public
set_name(string $name)
Sets the name of the driver.