54 $this->source = $a_data;
55 if(is_object($a_data))
59 elseif(is_array($a_data))
142 $this->login = $this->source->getLogin();
143 $this->firstname = $this->source->getFirstname();
144 $this->lastname = $this->source->getLastname();
145 $this->email = $this->source->getEmail();
146 $this->institution = $this->source->getInstitution();
148 $this->uid_hash =
'il_'.$ilSetting->get(
'inst_id',0).
'_usr_'.$this->source->getId();
159 $this->source = json_decode(urldecode($this->source));
161 $this->login = $this->source->login();
162 $this->firstname = $this->source->firstname();
163 $this->lastname = $this->source->lastname();
164 $this->email = $this->source->email();
165 $this->institution = $this->source->institution();
167 $this->uid_hash = $this->source->uid_hash;
185 if(
$_GET[
'ecs_uid_hash'])
189 elseif(
$_GET[
'ecs_uid'])
204 return urlencode(json_encode($this));
215 return '&ecs_login='.urlencode((
string) $this->login).
216 '&ecs_firstname='.urlencode((
string) $this->firstname).
217 '&ecs_lastname='.urlencode((
string) $this->lastname).
218 '&ecs_email='.urlencode((
string) $this->email).
219 '&ecs_institution='.urlencode((
string) $this->institution).
220 '&ecs_uid_hash='.urlencode((
string) $this->uid_hash);
221 '&ecs_uid='.urlencode((
string) $this->uid_hash);
231 (
string) $this->login.
''.
232 (string) $this->firstname.
''.
233 (
string) $this->lastname.
''.
234 (string) $this->email.
''.
235 (
string) $this->institution.
''.
236 (string) $this->uid_hash;
Stores relevant user data.
loadFromObject()
load from object
getFirstname()
get firstname
loadFromGET()
load user data from GET parameters
toREALM()
Concatenate all attributes to one string.
loadFromJSON()
load from json
toGET()
get GET parameter string
__construct($a_data)
Constructor.
getInstitution()
get institution
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled