Summary
- File
- Package hierarchy PHPBoost\Config
- Class hierarchy \AbstractConfigData \UserAccountsConfig
This class contains all the data related to the user accounts configuration.
This class contains all the data related to the user accounts configuration.
__construct()
Constructs a AbstractConfigData object
None found |
synchronize()
This method is not used in the configuration context.
{@inheritdoc}
None found |
set_default_values()
Redefine this method if you want to avoid getting errors while asking values.
If some entries doesn't exist, they can be created here.
None found |
get_property(string $name) : string
Reads a property's value.
string | $name | Name of the property to read |
the read value
None found |
set_property(string $name, string $value)
Sets a property value. If the property exists, it overrides its value, otherwise, it creates an entry for this property.
string | $name | Name of the property |
string | $value | Value of the property |
None found |
get_default_values() : \string[mixed]
Returns a map associating to each property name the corresponding default value
None found |
get_member_accounts_validation_method() : integer
Tells how the member accounts are activated
0 if there is no activation, 1 if the member activates its account thanks to the mail it receives, 2 if the administrator has to approbate it.
None found |
set_member_accounts_validation_method(integer $method)
Sets the method used to validate the member accounts
integer | $method | 0 if there is no activation, 1 if the member activates its account thanks to the mail it receives, 2 if the administrator has to approbate it. |
None found |
get_welcome_message() : string
Returns the welcome message
the message
None found |
set_welcome_message(string $message)
Sets the welcome message displayed on the member profile main page.
string | $message | The welcome message |
None found |
is_registration_enabled() : boolean
Tells whether the member registration is enabled
true if it is, false otherwise.
None found |
set_registration_enabled(boolean $enabled)
Sets the boolean indicating if the registration is enabled
boolean | $enabled | true if enabled, false otherwise |
None found |
enable_registration()
Enables the member registration
None found |
disable_registration()
Disables the member registration
None found |
get_registration_agreement() : \unknown_type
Gets the agreement that users must accept to register
None found |
set_registration_agreement( $agreement)
Sets the agreement that users mut accept to register
$agreement | The agreement |
None found |
is_avatar_upload_enabled() : boolean
Tells whether users can upload their avatar
true if they can, false otherwise
None found |
set_avatar_upload_enabled(boolean $enabled)
Sets the boolean indicating if avatars can be uploaded on the server
boolean | $enabled | true if enabled, false otherwise |
None found |
is_avatar_auto_resizing_enabled() : boolean
Tells whether the scaling is enabled avatars
true if they can, false otherwise
None found |
set_avatar_auto_resizing_enabled(boolean $enabled)
Sets the boolean value indicating whether the avatars should be resized automatically
boolean | $enabled | true if enabled, false otherwise |
None found |
enable_avatar_upload()
Lets users upload their avatar
None found |
disable_avatar_upload()
Forbid users to upload their avatar
None found |
get_unactivated_accounts_timeout() : integer
Returns the time after which the member accounts which haven't been activated are removed
The time (in days)
None found |
set_unactivated_accounts_timeout(integer $duration)
Sets the duration of the unactivated accounts timeout
integer | $duration | The duration (in days) |
None found |
get_default_avatar_name() : string
Returns the default avatar URL
The URL
None found |
set_default_avatar_name(string $url)
Sets the default avatar URL
string | $url | The URL of the default avatar |
None found |
is_default_avatar_enabled() : boolean
Tells whether the default avatar is set or not
true if it is, false otherwise
None found |
get_default_avatar() : string
Returns the default avatar proper URL adapted to user template if exists
The URL
None found |
get_max_avatar_width() : integer
Returns the max width of avatars
The width in pixels
None found |
set_max_avatar_width(integer $width)
Sets the max width of avatars
integer | $width | The width in pixels |
None found |
get_max_avatar_height() : integer
Returns the max height of avatars
The height in pixels
None found |
set_max_avatar_height(integer $height)
Sets the max height of avatars
integer | $height | The height in pixels |
None found |
get_max_avatar_weight() : integer
Returns the max weight of avatars
The weight in kilobytes
None found |
set_max_avatar_weight( $weight)
Sets the max weight of avatars
$weight |
None found |
get_auth_read_members() : array
Returns the authorization to read members all
The array of authorizations.
None found |
set_auth_read_members( $auth)
Sets the authorization to read members all
$auth |
None found |
get_default_lang()
None found |
set_default_lang( $lang)
$lang |
None found |
get_default_theme()
None found |
set_default_theme( $theme)
$theme |
None found |
get_max_private_messages_number()
None found |
set_max_private_messages_number( $number)
$number |
None found |
are_users_allowed_to_change_display_name()
None found |
set_allow_users_to_change_display_name( $enabled)
$enabled |
None found |
are_users_allowed_to_change_email()
None found |
set_allow_users_to_change_email( $enabled)
$enabled |
None found |
load() : \UserAccountsConfig
Returns the configuration.
None found |
save()
Saves the configuration in the database. Has it become persistent.
None found |
get_default_value( $property)
$property |
None found |
$properties_map :
None found |
MEMBER_ACCOUNTS_VALIDATION_METHOD_PROPERTY = 'member_accounts_validation_method'
Name of the property indicating if member accounts have to be validated and how.
None found |
WELCOME_MESSAGE_PROPERTY = 'welcome_message'
Name of the property containing the welcome message visible at the entry of the member zone
None found |
REGISTRATION_ENABLED_PROPERTY = 'registration_enabled'
Name of the property indicating if guests can register
None found |
REGISTRATION_AGREEMENT_PROPERTY = 'registration_agreement'
Name of the property containing the registration agreement that user must accept to register on the site
None found |
UNACTIVATED_ACCOUNTS_TIMEOUT_PROPERTY = 'unactivated_accounts_timeout'
Name of the property containing the time (in days) after which a member account which hasn't been activated will be automatically removed.
None found |
ENABLE_AVATAR_UPLOAD_PROPERTY = 'enable_avatar_upload'
Name of the property indicating if users can upload on the server their avatar
None found |
ENABLE_AVATAR_AUTO_RESIZING = 'enable_avatar_auto_resizing'
Name of the property indicating whether avatars' automatic resizing is enabled or not
None found |
DEFAULT_AVATAR_URL_PROPERTY = 'default_avatar_url'
Name of the property indicating the URL of the default avatar
None found |
MAX_AVATAR_WIDTH_PROPERTY = 'max_avatar_width'
Name of the property indicating the maximum avatar width (in pixels).
None found |
MAX_AVATAR_HEIGHT_PROPERTY = 'max_avatar_height'
Name of the property indicating the maximum avatar height (in pixels).
None found |
MAX_AVATAR_WEIGHT_PROPERTY = 'max_avatar_weight'
Name of the property containing the max size of avatars
None found |
AUTH_READ_MEMBERS = 'auth_read_members'
Name of the property containing the authorization read member all
None found |
AUTH_READ_MEMBERS_BIT = 1
None found |
DEFAULT_LANG = 'default_lang'
None found |
DEFAULT_THEME = 'default_theme'
None found |
MAX_PRIVATE_MESSAGES_NUMBER = 'max_pm_number'
None found |
ALLOW_USERS_TO_CHANGE_DISPLAY_NAME = 'allow_users_to_change_display_name'
None found |
ALLOW_USERS_TO_CHANGE_EMAIL = 'allow_users_to_change_email'
None found |
AUTOMATIC_USER_ACCOUNTS_VALIDATION = '1'
None found |
MAIL_USER_ACCOUNTS_VALIDATION = '2'
None found |
ADMINISTRATOR_USER_ACCOUNTS_VALIDATION = '3'
None found |
NO_AVATAR_URL = '/templates/default/images/no_avatar.png'
None found |