54 $this->source = $a_data;
55 if (is_object($a_data)) {
57 } elseif (is_array($a_data)) {
137 $this->login = $this->source->getLogin();
138 $this->firstname = $this->source->getFirstname();
139 $this->lastname = $this->source->getLastname();
140 $this->email = $this->source->getEmail();
141 $this->institution = $this->source->getInstitution();
143 $this->uid_hash =
'il_' . $ilSetting->get(
'inst_id', 0) .
'_usr_' . $this->source->getId();
154 $this->source = json_decode(urldecode($this->source));
156 $this->login = $this->source->login();
157 $this->firstname = $this->source->firstname();
158 $this->lastname = $this->source->lastname();
159 $this->email = $this->source->email();
160 $this->institution = $this->source->institution();
162 $this->uid_hash = $this->source->uid_hash;
179 if (
$_GET[
'ecs_uid_hash']) {
181 } elseif (
$_GET[
'ecs_uid']) {
195 return urlencode(json_encode($this));
206 return '&ecs_login=' . urlencode((
string) $this->login) .
207 '&ecs_firstname=' . urlencode((
string) $this->firstname) .
208 '&ecs_lastname=' . urlencode((
string) $this->lastname) .
209 '&ecs_email=' . urlencode((
string) $this->email) .
210 '&ecs_institution=' . urlencode((
string) $this->institution) .
211 '&ecs_uid_hash=' . urlencode((
string) $this->uid_hash);
212 '&ecs_uid=' . 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 .
'' .
getFirstname()
get firstname
loadFromJSON()
load from json
toGET()
get GET parameter string
toREALM()
Concatenate all attributes to one string.
__construct($a_data)
Constructor.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
loadFromObject()
load from object
loadFromGET()
load user data from GET parameters
getInstitution()
get institution
Stores relevant user data.