Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
UserModel Class Reference
Collaboration diagram for UserModel:
Collaboration graph

Static Public Member Functions

static getUser ($user_id, $field=NULL, $full=false)
static getUserStudycourse ($user_id)
static getUserInstitute ($user_id, $as_student=false)
static getUsers ($username=NULL, $vorname=NULL, $nachname=NULL, $email=NULL, $inaktiv=NULL, $perms=NULL, $locked=NULL, $datafields=NULL, $userdomains=NULL, $auth_plugins=NULL, $sort=NULL, $order= 'DESC')
static getInstitute ($user_id, $inst_id)
static setInstitute ($user_id, $inst_id, $values)
static check ($user_id)
static convert ($old_id, $new_id, $identity=false)
static getAvailableInstitutes ($user_id)
static getAvailableAuthPlugins ()

Member Function Documentation

static check (   $user_id)
static

Check if a user exists.

Parameters
md5$user_id
Returns
bool

Here is the call graph for this function:

Here is the caller graph for this function:

static convert (   $old_id,
  $new_id,
  $identity = false 
)
static

Merge an user ($old_id) to another user ($new_id). This is a part of the old numit-plugin.

Parameters
string$old_user
string$new_user
boolean$identitymerge identity (if true)
Returns
array() messages to display after migration

Here is the call graph for this function:

Here is the caller graph for this function:

static getAvailableAuthPlugins ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static getAvailableInstitutes (   $user_id)
static

Return a list of free and available institutes of an user.

Parameters
md5$user_id
Returns
array() list of institutes

Here is the call graph for this function:

static getInstitute (   $user_id,
  $inst_id 
)
static

Return the institute information, depending on the selected user and institute.

Parameters
md5$user_id
md5$inst_id
Returns
array()

Here is the call graph for this function:

Here is the caller graph for this function:

static getUser (   $user_id,
  $field = NULL,
  $full = false 
)
static

Return all informations of an user, otherwise the selected field of the databse-table auth_user_md5, if field is set.

Parameters
md5$user_id
string$field
bool$full
Returns
string (if field is set), otherwise array()

Here is the call graph for this function:

Here is the caller graph for this function:

static getUserInstitute (   $user_id,
  $as_student = false 
)
static

Return the Institutes of an user depending of the student-status.

Parameters
md5$user_id
bool$as_student
Returns
array()

Here is the call graph for this function:

Here is the caller graph for this function:

static getUsers (   $username = NULL,
  $vorname = NULL,
  $nachname = NULL,
  $email = NULL,
  $inaktiv = NULL,
  $perms = NULL,
  $locked = NULL,
  $datafields = NULL,
  $userdomains = NULL,
  $auth_plugins = NULL,
  $sort = NULL,
  $order = 'DESC' 
)
static

Search for users, depending of the used parameters.

Parameters
string$username
string$vorname
string$nachname
string$email
int$inaktiv
string$perms
int$locked
array()$datafields
string$sort
string$order
Returns
array() list of found users

Here is the call graph for this function:

Here is the caller graph for this function:

static getUserStudycourse (   $user_id)
static

Return the studycourses of an user.

Parameters
md5$user_id
Returns
array() list of studycourses

Here is the call graph for this function:

Here is the caller graph for this function:

static setInstitute (   $user_id,
  $inst_id,
  $values 
)
static

Update the institute-informations of an user.

Parameters
md5$user_id
md5$inst_id
array()$values list of changed entries

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: