Summary
- File
- Package hierarchy PHPBoost\User
- Class hierarchy \UserService
This class manage users
This class manage users
__static()
None found |
create(\User $user, \AuthenticationMethod $auth_method, $extended_fields = array(), $auth_method_data = array()) : integer
Create a user
\User | $user | |
\AuthenticationMethod | $auth_method | |
$extended_fields | ||
$auth_method_data |
Id of the user if new user, false otherwise
None found |
delete_by_id( $user_id)
$user_id |
None found |
update(\User $user, $extended_fields = null)
Update user
\User | $user | |
$extended_fields |
None found |
update_punishment(\User $user)
\User | $user |
None found |
get_user(integer $user_id) : \User
Get user from his id
integer | $user_id | Id of the user concerned |
The requested user if exists, false otherwise
None found |
get_user_by_display_name(string $display_name) : \User
Get user from his display name
string | $display_name | Display name of the user concerned |
The requested user if exists, false otherwise
None found |
get_user_by_email(string $email) : \User
Get user from his email
string | Email of the user concerned |
The requested user if exists, false otherwise
None found |
user_exists(string $condition, array $parameters) : boolean
Check if a user exists
string | $condition | Condition of the request |
array | $parameters | Parameters contained in the condition |
true if the user exists
None found |
get_level_lang(string $level) : string
Get localized user level
string | $level | Level of the user |
The localized level
None found |
get_level_class(string $level) : string
Get CSS class of the user level
string | $level | Level of the user |
The CSS class
None found |
remove_old_unactivated_member_accounts()
None found |
count_admin_members()
None found |
display_user_profile_link( $user_id)
$user_id |
None found |
regenerate_cache()
None found |