Methods summary
public static
|
|
public static
integer
|
#
create( User $user, AuthenticationMethod $auth_method, $extended_fields = array(), $auth_method_data = array() )
Create a user
Parameters
- $user
- $user_authentification
- $auth_method
- $user
- $extended_fields
- $auth_method_data
Returns
integer Id of the user if new user, false otherwise
|
public static
|
|
public static
|
#
update( User $user, string $extended_fields = null, array $parameters,… )
Update user
Parameters
- $user
- $extended_fields
- $condition the SQL condition update user
- $parameters,…
|
public static
|
|
public static
User
|
#
get_user( integer $user_id )
Get user from his id
Parameters
- $user_id
- Id of the user concerned
Returns
User The requested user if exists, false otherwise
|
public static
User
|
#
get_user_by_display_name( string $display_name )
Get user from his display name
Get user from his display name
Parameters
- $display_name
- Display name of the user concerned
Returns
User The requested user if exists, false otherwise
|
public static
boolean
|
#
user_exists( string $condition, array $parameters )
Check if a user exists
Parameters
- $condition
- Condition of the request
- $parameters
- Parameters contained in the condition
Returns
boolean true if the user exists
|
public static
string
|
#
get_level_lang( string $level )
Get localized user level
Parameters
Returns
string The localized level
|
public static
string
|
#
get_level_class( string $level )
Get CSS class of the user level
Get CSS class of the user level
Parameters
Returns
string The CSS class
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|