ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilECSUser Class Reference

Stores relevant user data. More...

+ Collaboration diagram for ilECSUser:

Public Member Functions

 __construct ($a_data)
 Constructor.
 getLogin ()
 get login
 getFirstname ()
 get firstname
 getLastname ()
 getLastname
 getEmail ()
 get email
 getInstitution ()
 get institution
 getImportId ()
 get Email
 loadFromObject ()
 load from object
 loadFromJSON ()
 load from json
 loadFromGET ()
 load user data from GET parameters
 toJSON ()
 public
 toGET ()
 get GET parameter string

Data Fields

 $login
 $email
 $firstname
 $lastname
 $institution
 $uid_hash

Protected Attributes

 $source

Detailed Description

Stores relevant user data.

Author
Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
$Id$

Definition at line 35 of file class.ilECSUser.php.

Constructor & Destructor Documentation

ilECSUser::__construct (   $a_data)

Constructor.

Parameters
mixedilObjUser or encoded json string public

Definition at line 52 of file class.ilECSUser.php.

References elseif(), loadFromGET(), loadFromJSON(), and loadFromObject().

{
$this->source = $a_data;
if(is_object($a_data))
{
$this->loadFromObject();
}
elseif(is_array($a_data))
{
$this->loadFromGET();
}
else
{
$this->loadFromJSON();
}
}

+ Here is the call graph for this function:

Member Function Documentation

ilECSUser::getEmail ( )

get email

public

Definition at line 106 of file class.ilECSUser.php.

References $email.

Referenced by ilAuthContainerECS\createUser(), and ilAuthContainerECS\updateUser().

{
return $this->email;
}

+ Here is the caller graph for this function:

ilECSUser::getFirstname ( )

get firstname

public

Definition at line 86 of file class.ilECSUser.php.

References $firstname.

Referenced by ilAuthContainerECS\createUser(), and ilAuthContainerECS\updateUser().

{
}

+ Here is the caller graph for this function:

ilECSUser::getImportId ( )

get Email

public

Definition at line 127 of file class.ilECSUser.php.

References $uid_hash.

Referenced by ilAuthContainerECS\createUser(), and ilAuthContainerECS\updateUser().

{
}

+ Here is the caller graph for this function:

ilECSUser::getInstitution ( )

get institution

public

Definition at line 116 of file class.ilECSUser.php.

References $institution.

Referenced by ilAuthContainerECS\createUser(), and ilAuthContainerECS\updateUser().

{
}

+ Here is the caller graph for this function:

ilECSUser::getLastname ( )

getLastname

public

Definition at line 96 of file class.ilECSUser.php.

References $lastname.

Referenced by ilAuthContainerECS\createUser(), and ilAuthContainerECS\updateUser().

{
}

+ Here is the caller graph for this function:

ilECSUser::getLogin ( )

get login

public

Definition at line 75 of file class.ilECSUser.php.

References $login.

Referenced by ilAuthContainerECS\createUser().

{
return $this->login;
}

+ Here is the caller graph for this function:

ilECSUser::loadFromGET ( )

load user data from GET parameters

public

Definition at line 177 of file class.ilECSUser.php.

References $_GET, and ilUtil\stripSlashes().

Referenced by __construct().

{
$this->login = ilUtil::stripSlashes(urldecode($_GET['ecs_login']));
$this->firstname = ilUtil::stripSlashes(urldecode($_GET['ecs_firstname']));
$this->lastname = ilUtil::stripSlashes(urldecode($_GET['ecs_lastname']));
$this->email = ilUtil::stripSlashes(urldecode($_GET['ecs_email']));
$this->institution = ilUtil::stripSlashes(urldecode($_GET['ecs_institution']));
$this->uid_hash = ilUtil::stripSlashes(urldecode($_GET['ecs_uid_hash']));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilECSUser::loadFromJSON ( )

load from json

public

Definition at line 157 of file class.ilECSUser.php.

Referenced by __construct().

{
$this->source = json_decode(urldecode($this->source));
$this->login = $this->source->login();
$this->firstname = $this->source->firstname();
$this->lastname = $this->source->lastname();
$this->email = $this->source->email();
$this->institution = $this->source->institution();
$this->uid_hash = $this->source->uid_hash;
}

+ Here is the caller graph for this function:

ilECSUser::loadFromObject ( )

load from object

public

Definition at line 138 of file class.ilECSUser.php.

References $ilSetting.

Referenced by __construct().

{
global $ilSetting;
$this->login = $this->source->getLogin();
$this->firstname = $this->source->getFirstname();
$this->lastname = $this->source->getLastname();
$this->email = $this->source->getEmail();
$this->institution = $this->source->getInstitution();
$this->uid_hash = 'il_'.$ilSetting->get('inst_id',0).'_usr_'.$this->source->getId();
}

+ Here is the caller graph for this function:

ilECSUser::toGET ( )

get GET parameter string

public

Definition at line 205 of file class.ilECSUser.php.

{
return '&ecs_login='.urlencode($this->login).
'&ecs_firstname='.urlencode($this->firstname).
'&ecs_lastname='.urlencode($this->lastname).
'&ecs_email='.urlencode($this->email).
'&ecs_institution='.urlencode($this->institution).
'&ecs_uid_hash='.urlencode($this->uid_hash);
}
ilECSUser::toJSON ( )

public

Parameters

Definition at line 194 of file class.ilECSUser.php.

{
return urlencode(json_encode($this));
}

Field Documentation

ilECSUser::$email

Definition at line 40 of file class.ilECSUser.php.

Referenced by getEmail().

ilECSUser::$firstname

Definition at line 41 of file class.ilECSUser.php.

Referenced by getFirstname().

ilECSUser::$institution

Definition at line 43 of file class.ilECSUser.php.

Referenced by getInstitution().

ilECSUser::$lastname

Definition at line 42 of file class.ilECSUser.php.

Referenced by getLastname().

ilECSUser::$login

Definition at line 39 of file class.ilECSUser.php.

Referenced by getLogin().

ilECSUser::$source
protected

Definition at line 37 of file class.ilECSUser.php.

ilECSUser::$uid_hash

Definition at line 44 of file class.ilECSUser.php.

Referenced by getImportId().


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