Detailed Description
UserManagement.class.php
Management for the Stud.IP global users
Member Function Documentation
| changePassword |
( |
|
$password | ) |
|
Change an existing user password
- Parameters
-
- Returns
- bool change successful?
Change an existing studip user according to the given parameters
public
- Parameters
-
| array | structure: array('string table_name.field_name'=>'string value') |
- Returns
- bool Change successful?
Check if Email-Adress is valid and reachable
private
- Parameters
-
| string | Email-Adress to check |
- Returns
- bool Email-Adress valid and reachable?
| createNewUser |
( |
|
$newuser | ) |
|
Create a new studip user with the given parameters
public
- Parameters
-
| array | structure: array('string table_name.field_name'=>'string value') |
- Returns
- bool Creation successful?
| createPreliminaryUser |
( |
|
$newuser | ) |
|
Create a new preliminary studip user with the given parameters
public
- Parameters
-
| array | structure: array('string table_name.field_name'=>'string value') |
- Returns
- bool Creation successful?
| deleteUser |
( |
|
$delete_documents = true | ) |
|
Delete an existing user from the database and tidy up
public
- Parameters
-
| bool | delete all documents belonging to the user |
- Returns
- bool Removal successful?
| generate_password |
( |
|
$length | ) |
|
generate a secure password of $length characters [a-z0-9]
private
- Parameters
-
| integer | $length | number of characters |
- Returns
- string password
| getFromDatabase |
( |
|
$user_id | ) |
|
load user data from database into internal array
private
- Parameters
-
| string | $user_id | the user which should be retrieved |
| re_sort_position_in_seminar_user |
( |
| ) |
|
store user data from internal array into database
private
- Returns
- bool all data stored?
Constructor
Pass nothing to create a new user, or the user_id from an existing user to change or delete public
- Parameters
-
| string | $user_id | the user which should be retrieved |
Field Documentation
The documentation for this class was generated from the following file: