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