34 $shib_user =
new self();
37 $ext_id = $shib_user->shibServerData->
getLogin();
38 $shib_user->setExternalAccount($ext_id);
39 $existing_usr_id = self::getUsrIdByExtId($ext_id);
40 if ($existing_usr_id !==
null) {
41 $shib_user->setId($existing_usr_id);
44 $shib_user->setAuthMode(
'shibboleth');
52 if ($shibConfig->getUpdateFirstname()) {
55 if ($shibConfig->getUpdateLastname()) {
58 if ($shibConfig->getUpdateGender()) {
61 if ($shibConfig->getUpdateTitle()) {
64 if ($shibConfig->getUpdateInstitution()) {
67 if ($shibConfig->getUpdateDepartment()) {
70 if ($shibConfig->getUpdateStreet()) {
73 if ($shibConfig->getUpdateZipcode()) {
76 if ($shibConfig->getUpdateCountry()) {
79 if ($shibConfig->getUpdatePhoneOffice()) {
82 if ($shibConfig->getUpdatePhoneHome()) {
85 if ($shibConfig->getUpdatePhoneMobile()) {
88 if ($shibConfig->getUpdateFax()) {
91 if ($shibConfig->getUpdateMatriculation()) {
94 if ($shibConfig->getUpdateEmail()) {
97 if ($shibConfig->getUpdateHobby()) {
100 if ($shibConfig->getUpdateLanguage()) {
146 $recipients = array_filter($registration_settings->getApproveRecipients(),
static fn($v):
bool => is_int($v));
147 if ($recipients !== [] &&
$c->isActivateNew()) {
151 $mail->setRecipients($registration_settings->getApproveRecipients());
152 $mail->setAdditionalInformation([
'usr' => $this]);
157 return parent::create();
171 $login = $login_tmp . $appendix;
180 return $this->
getId() === 0;
188 'ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ',
189 'SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy' 198 $db = $DIC->database();
200 $query =
'SELECT usr_id FROM usr_data WHERE login = ' .
$db->
quote($login,
'text');
201 $query .=
' AND usr_id != ' .
$db->
quote($usr_id,
'integer');
210 $db = $DIC->database();
212 $query =
'SELECT usr_id FROM usr_data WHERE ext_account = ' .
$db->
quote($ext_id,
'text');
220 return ($usr !==
null && isset($usr->usr_id)) ? (
int) $usr->usr_id :
null;
setUTitle(string $a_str)
set user title (note: don't mix up this method with setTitle() that is derived from ilObject and sets...
setTimeLimitUnlimited(bool $a_unlimited)
numRows(ilDBStatement $statement)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setMatriculation(string $a_str)
setPhoneOffice(string $a_str)
loginExists(string $login, int $usr_id)
shibServerData $shibServerData
getFullname(int $a_max_strlen=0)
quote($value, string $type)
setTimeLimitUntil(?int $a_until)
setInstitution(string $a_str)
setPasswd(string $a_str, string $a_type=ilObjUser::PASSWD_PLAIN)
setExternalAccount(string $a_str)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setActive(bool $a_active, int $a_owner=0)
set user active state and updates system fields appropriately
setDepartment(string $a_str)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setPhoneHome(string $a_str)
fetchObject(ilDBStatement $query_result)
query(string $query)
Run a (read-only) Query on the database.
static buildInstance(shibServerData $shibServerData)
static getUsrIdByExtId(string $ext_id)
setCountry(string $a_str)
static generatePasswords(int $a_number)
Generate a number of passwords.
setPhoneMobile(string $a_str)
setLastname(string $a_str)
Class ilObjAuthSettingsGUI.
setLanguage(string $a_str)
setTimeLimitOwner(int $a_owner)
setLastPasswordChangeToNow()
setZipcode(string $a_str)
setTimeLimitFrom(?int $a_from)
setFirstname(string $a_str)
setDescription(string $description)
const TYPE_NOTIFICATION_CONFIRMATION