25 define(
'IL_REG_DISABLED',1);
26 define(
'IL_REG_DIRECT',2);
27 define(
'IL_REG_APPROVE',3);
29 define(
'IL_REG_ROLES_FIXED',1);
30 define(
'IL_REG_ROLES_EMAIL',2);
32 define(
'IL_REG_ERROR_UNKNOWN',1);
33 define(
'IL_REG_ERROR_NO_PERM',2);
52 return $this->registration_type;
56 $this->registration_type = $a_type;
81 return $this->password_generation_enabled;
85 $this->password_generation_enabled = $a_status;
90 return $this->access_limitation;
95 $this->access_limitation = $a_access_limitation;
100 $this->approve_recipient_logins = $a_rec_string;
101 $this->approve_recipient_ids = array();
104 foreach(explode(
',',trim($this->approve_recipient_logins)) as $login)
108 $this->approve_recipient_ids[] = $uid;
114 return $this->approve_recipient_logins;
118 return $this->approve_recipient_ids ? $this->approve_recipient_ids : array();
122 return implode(
',',$this->unknown);
135 $this->role_type = $a_type;
143 $this->unknown = array();
144 $this->mail_perm = array();
147 $login_arr = $login_arr ? $login_arr : array();
148 foreach($login_arr as $recipient)
150 if(!$recipient = trim($recipient))
156 $this->unknown[] = $recipient;
160 return count($this->unknown) ? 1 : 0;
168 $ilias->setSetting(
'reg_role_assignment',$this->role_type);
169 $ilias->setSetting(
'new_registration_type',$this->registration_type);
170 $ilias->setSetting(
'passwd_reg_auto_generate',$this->password_generation_enabled);
171 $ilias->setSetting(
'approve_recipient',addslashes(serialize($this->approve_recipient_ids)));
172 $ilias->setSetting(
'reg_access_limitation',$this->access_limitation);
181 $this->registration_type = $ilias->getSetting(
'new_registration_type');
182 $this->role_type = $ilias->getSetting(
'reg_role_assignment',1);
183 $this->password_generation_enabled = $ilias->getSetting(
'passwd_reg_auto_generate');
184 $this->access_limitation = $ilias->getSetting(
'reg_access_limitation');
186 $this->approve_recipient_ids = unserialize(stripslashes($ilias->getSetting(
'approve_recipient')));
187 $this->approve_recipient_ids = $this->approve_recipient_ids ?
188 $this->approve_recipient_ids :
192 $tmp_logins = array();
193 foreach($this->approve_recipient_ids as $id)
197 $tmp_logins[] = $login;
200 $this->approve_recipient_logins = implode(
',',$tmp_logins);