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

Public Member Functions

 ConnectedUser ($cms, $user_id=false)
 readData ()
 getStudipUserData ()
 newUser ()
 updateUser ()
 deleteUser ()
 getLoginData ()
 getId ()
 getStudipId ()
 getUsername ()
 setUsername ($user_login)
 getPassword ()
 setPassword ($user_password)
 getCategory ()
 setCategory ($user_category)
 getCryptedPassword ($password)
 verifyLogin ($username, $password)
 getGender ()
 setGender ($user_gender)
 getName ()
 getFirstname ()
 setFirstname ($user_firstname)
 getLastname ()
 setLastname ($user_lastname)
 getEmail ()
 setEmail ($user_email)
 getUserType ()
 setUserType ($user_type)
 setConnection ($user_type)
 isConnected ()

Data Fields

 $cms_type
 $id
 $studip_id
 $studip_login
 $studip_password
 $login
 $external_password
 $category
 $gender
 $title_front
 $title_rear
 $title
 $firstname
 $lastname
 $institution
 $department
 $street
 $city
 $zipcode
 $country
 $phone_home
 $fax
 $matriculation
 $email
 $type
 $is_connected
 $db_class

Member Function Documentation

ConnectedUser (   $cms,
  $user_id = false 
)

constructor

init class. don't call directly, class is loaded by ConnectedCMS. public

Parameters
string$cmssystem-type

Here is the call graph for this function:

Here is the caller graph for this function:

deleteUser ( )

delete user-account

dummy-method. returns false. must be overwritten by subclass. public

Returns
boolean returns false

Reimplemented in Ilias3ConnectedUser.

getCategory ( )

get user category

returns id public

Returns
string id
getCryptedPassword (   $password)

get crypted password

dummy-method. returns false. must be overwritten by subclass. public

Returns
boolean returns false

Reimplemented in Ilias3ConnectedUser.

Here is the caller graph for this function:

getEmail ( )

get email-adress

returns email-adress public

Returns
string email-adress
getFirstname ( )

get firstname

returns firstname public

Returns
string firstname
getGender ( )

get gender

returns gender-setting public

Returns
string gender-setting
getId ( )

get id

returns id public

Returns
string id

Here is the caller graph for this function:

getLastname ( )

get lastname

returns lastname public

Returns
string lastname
getLoginData ( )

get login-data of user-account

dummy-method. returns false. must be overwritten by subclass. public

Returns
boolean returns false

Here is the caller graph for this function:

getName ( )

get full name

returns full name public

Returns
string name

Here is the caller graph for this function:

getPassword ( )

get password

returns password public

Returns
string password
getStudipId ( )

get stud.ip user-id

returns id public

Returns
string stud.ip user-id
getStudipUserData ( )

get stud.ip-user-data

gets stud.ip-user-data from database public

Returns
boolean returns false, if no data was found

Here is the caller graph for this function:

getUsername ( )

get username

returns username public

Returns
string username
getUserType ( )

get user-type

returns user-type public

Returns
string user-type

Here is the caller graph for this function:

isConnected ( )

get connection-status

returns true, if there is a connected user public

Returns
boolean connection-status

Here is the caller graph for this function:

newUser ( )

create new user-account

dummy-method. returns false. must be overwritten by subclass. public

Returns
boolean returns false

Reimplemented in Ilias4ConnectedUser.

Here is the caller graph for this function:

readData ( )

get data

gets data from database public

Returns
boolean returns false, if no data was found

Reimplemented in Ilias3ConnectedUser.

Here is the caller graph for this function:

setCategory (   $user_category)

set user category

sets user category public

Parameters
string$user_categorycategory
setConnection (   $user_type)

save connection for user-account

saves user-connection to database and sets type for actual user public

Parameters
string$user_typeuser-type

Here is the call graph for this function:

setEmail (   $user_email)

set email-adress

sets email-adress public

Parameters
string$user_emailemail-adress
setFirstname (   $user_firstname)

set firstname

sets firstname public

Parameters
string$user_firstnamefirstname
setGender (   $user_gender)

set gender

sets gender public

Parameters
string$user_gendergender-setting
setLastname (   $user_lastname)

set lastname

sets lastname public

Parameters
string$user_lastnamelastname
setPassword (   $user_password)

set password

sets password public

Parameters
string$user_passwordpassword

Here is the caller graph for this function:

setUsername (   $user_login)

set username

sets username public

Parameters
string$user_loginusername
setUserType (   $user_type)

set user-type

sets user-type public

Parameters
string$user_typeuser-type

Here is the caller graph for this function:

updateUser ( )

update user-account

dummy-method. returns false. must be overwritten by subclass. public

Returns
boolean returns false

Reimplemented in Ilias3ConnectedUser.

verifyLogin (   $username,
  $password 
)

verify login data

returns true, if login-data is valid public

Parameters
string$usernameusername
string$passwordpassword
Returns
boolean login-validation

Here is the call graph for this function:

Field Documentation

$category
$city
$cms_type
$country
$db_class
$department
$email
$external_password
$fax
$firstname
$gender
$id
$institution
$is_connected
$lastname
$login
$matriculation
$phone_home
$street
$studip_id
$studip_login
$studip_password
$title
$title_front
$title_rear
$type
$zipcode

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