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

Public Member Functions

 __construct ($id=NULL)
 setUserid ($id)
 getSurname ()
 getGivenname ()
 getUserid ()
 getPermission ()
 getUsername ()
 isSameUser (StudIPUser $otheruser)
 getAssignedRoles ($withimplicit=false)
 isAssignedRole ($assignedrole= '')

Data Fields

 $userid
 $username
 $permission
 $surname
 $givenname
 $assignedroles

Detailed Description

User-Object which should be used in plugins

Constructor & Destructor Documentation

__construct (   $id = NULL)

Initialize a user object for the current user or the given user id.

Here is the call graph for this function:

Member Function Documentation

getAssignedRoles (   $withimplicit = false)

Enter description here...

Parameters
boolean$withimplicit
Returns
array
getGivenname ( )

Enter description here...

Returns
string
getPermission ( )

Enter description here...

Returns
permission-object
getSurname ( )

Enter description here...

Returns
string
getUserid ( )

Enter description here...

Returns
string (md5)

Here is the caller graph for this function:

getUsername ( )

Enter description here...

Returns
string
isAssignedRole (   $assignedrole = '')

Enter description here...

Parameters
string$assignedrole
Returns
boolean
isSameUser ( StudIPUser  $otheruser)

checks, if this user is identical to the otheruser

Parameters
StudIPUser$otheruser
Returns
boolean same user or not

Here is the call graph for this function:

setUserid (   $id)

TODO: (mlunzena) what a bad design, the whole idea of filling a user by setting an ID smells

Deprecated:
Parameters
int$id

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

$assignedroles
$givenname
$permission
$surname
$userid
$username

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