class gravatar extends driver
Handles avatars hosted at gravatar.com
Constants
GRAVATAR_URL |
The URL for the gravatar service
|
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 |
from driver | |
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 |
from driver |
bool |
delete(array $row)
Delete avatar |
from driver |
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
in driver 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 41
public 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
public array
prepare_form_acp(user $user)
Prepare form for changing the acp settings of this avatar
in driver at line 114
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 29
public array
get_data(array $row)
Get the avatar url and dimensions
at line 52
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 66
public array
process_form(request $request, template $template, user $user, array $row, array $error)
Process form data
at line 161
public string
get_template_name()
Get the avatar driver's template name