Метод |
Описание |
|
delete ( integer $id ) |
Mark the user as deleted and deactivate his account. |
|
deleteResetPasswordSettings ( integer $id ) |
Deletes the reset_password_key and reset_password_timestamp for a given user ID |
|
emailDeletedBefore ( string $email ) : boolean |
Was a user deleted before? |
|
exists ( integer $id, boolean $active = true ) : boolean |
Does the user exist. |
|
existsEmail ( string $email, integer $id = null ) : boolean |
Does a email already exist?
If you specify a userId, the email with the given id will be ignored. |
|
get ( integer $id ) : array |
Get all data for a given user |
|
getCSVLineEndings ( ) : array |
Get the possible line endings for a CSV-file |
|
getCSVSplitCharacters ( ) : array |
Get the possible CSV split characters |
|
getDateFormats ( ) : array |
Fetch the list of date formats including examples of these formats. |
|
getGroups ( ) : array |
Get user groups |
|
getIdByEmail ( string $email ) : integer |
Get the user ID linked to a given email |
|
getModuleGroupsRightsActions ( integer $userId ) : array |
Get all module action combinations a user has access to |
|
getNumberFormats ( ) : array |
Fetch the list of number formats including examples of these formats. |
|
getSetting ( integer $userId, string $setting ) : mixed |
Fetch a user setting for a specific user |
|
getTimeFormats ( ) : array |
Fetch the list of time formats including examples of these formats. |
|
getUsers ( ) : array |
Get all users |
|
insert ( array $user, array $settings ) : integer |
Add a new user. |
|
setSetting ( integer $userId, string $setting, string $value ) : mixed |
Set a user setting for a specific user |
|
undoDelete ( string $email ) : boolean |
Restores a user |
|
update ( array $user, array $settings ) |
Save the changes for a given user
Remark: $user['id'] should be available |
|
updatePassword ( User $user, string $password ) |
Update the user password |
|