driver_interface
interface driver_interface
Interface for avatar drivers
Methods
Returns the name of the driver.
Returns the config name of the driver. To be used in accessing the CONFIG variables.
Get the avatar url and dimensions
Returns custom html if it is needed for displaying this avatar
Prepare form for changing the settings of this avatar
Process form data
Delete avatar
Get the avatar driver's template name
Get the avatar driver's template name (ACP)
Details
at line 26
string
get_name()
Returns the name of the driver.
at line 33
string
get_config_name()
Returns the config name of the driver. To be used in accessing the CONFIG variables.
at line 43
array
get_data(array $row)
Get the avatar url and dimensions
at line 55
string
get_custom_html(user $user, array $row, string $alt = '')
Returns custom html if it is needed for displaying this avatar
at line 72
bool
prepare_form(request $request, template $template, user $user, array $row, array $error)
Prepare form for changing the settings of this avatar
at line 83
array
prepare_form_acp(user $user)
Prepare form for changing the acp settings of this avatar
at line 101
array
process_form(request $request, template $template, user $user, array $row, array $error)
Process form data
at line 112
bool
delete(array $row)
Delete avatar
at line 119
string
get_template_name()
Get the avatar driver's template name
at line 126
string
get_acp_template_name()
Get the avatar driver's template name (ACP)