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;
196 return urlencode(json_encode($this));
207 return '&ecs_login='.urlencode((
string) $this->login).
208 '&ecs_firstname='.urlencode((
string) $this->firstname).
209 '&ecs_lastname='.urlencode((
string) $this->lastname).
210 '&ecs_email='.urlencode((
string) $this->email).
211 '&ecs_institution='.urlencode((
string) $this->institution).
212 '&ecs_uid_hash='.urlencode((
string) $this->uid_hash);
222 (
string) $this->login.
''.
223 (string) $this->firstname.
''.
224 (
string) $this->lastname.
''.
225 (string) $this->email.
''.
226 (
string) $this->institution.
''.
227 (string) $this->uid_hash;