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($this->login).
208 '&ecs_firstname='.urlencode($this->firstname).
209 '&ecs_lastname='.urlencode($this->lastname).
210 '&ecs_email='.urlencode($this->email).
211 '&ecs_institution='.urlencode($this->institution).
212 '&ecs_uid_hash='.urlencode($this->uid_hash);