ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilRegistrationSettings Class Reference

Class ilObjAuthSettingsGUI. More...

+ Collaboration diagram for ilRegistrationSettings:

Public Member Functions

 ilRegistrationSettings ()
 getRegistrationType ()
 setRegistrationType ($a_type)
 _lookupRegistrationType ()
 enabled ()
 directEnabled ()
 approveEnabled ()
 passwordGenerationEnabled ()
 setPasswordGenerationStatus ($a_status)
 getAccessLimitation ()
 setAccessLimitation ($a_access_limitation)
 setApproveRecipientLogins ($a_rec_string)
 getApproveRecipientLogins ()
 getApproveRecipients ()
 getUnknown ()
 roleSelectionEnabled ()
 automaticRoleAssignmentEnabled ()
 setRoleType ($a_type)
 validate ()
 save ()
 __read ()

Detailed Description

Class ilObjAuthSettingsGUI.

Author
Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
Version
Id:
class.ilRegistrationSettings.php 13067 2007-01-19 10:51:06Z shofmann

Definition at line 43 of file class.ilRegistrationSettings.php.

Member Function Documentation

ilRegistrationSettings::__read ( )

Definition at line 177 of file class.ilRegistrationSettings.php.

References ilObjUser\_lookupLogin().

Referenced by ilRegistrationSettings().

{
global $ilias;
$this->registration_type = $ilias->getSetting('new_registration_type');
$this->role_type = $ilias->getSetting('reg_role_assignment',1);
$this->password_generation_enabled = $ilias->getSetting('passwd_reg_auto_generate');
$this->access_limitation = $ilias->getSetting('reg_access_limitation');
$this->approve_recipient_ids = unserialize(stripslashes($ilias->getSetting('approve_recipient')));
$this->approve_recipient_ids = $this->approve_recipient_ids ?
$this->approve_recipient_ids :
array();
// create login array
$tmp_logins = array();
foreach($this->approve_recipient_ids as $id)
{
if($login = ilObjUser::_lookupLogin($id))
{
$tmp_logins[] = $login;
}
}
$this->approve_recipient_logins = implode(',',$tmp_logins);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilRegistrationSettings::_lookupRegistrationType ( )

Definition at line 59 of file class.ilRegistrationSettings.php.

References IL_REG_DISABLED.

Referenced by ilMainMenuGUI\setTemplateVars(), and ilStartUpGUI\showLogin().

{
global $ilias;
return $ilias->getSetting('new_registration_type',IL_REG_DISABLED);
}

+ Here is the caller graph for this function:

ilRegistrationSettings::approveEnabled ( )

Definition at line 74 of file class.ilRegistrationSettings.php.

References IL_REG_APPROVE.

{
return $this->registration_type == IL_REG_APPROVE;
}
ilRegistrationSettings::automaticRoleAssignmentEnabled ( )

Definition at line 129 of file class.ilRegistrationSettings.php.

References IL_REG_ROLES_EMAIL.

{
return $this->role_type == IL_REG_ROLES_EMAIL;
}
ilRegistrationSettings::directEnabled ( )

Definition at line 70 of file class.ilRegistrationSettings.php.

References IL_REG_DIRECT.

{
return $this->registration_type == IL_REG_DIRECT;
}
ilRegistrationSettings::enabled ( )

Definition at line 66 of file class.ilRegistrationSettings.php.

References IL_REG_DISABLED.

{
return $this->registration_type != IL_REG_DISABLED;
}
ilRegistrationSettings::getAccessLimitation ( )

Definition at line 88 of file class.ilRegistrationSettings.php.

{
return $this->access_limitation;
}
ilRegistrationSettings::getApproveRecipientLogins ( )

Definition at line 112 of file class.ilRegistrationSettings.php.

Referenced by validate().

{
return $this->approve_recipient_logins;
}

+ Here is the caller graph for this function:

ilRegistrationSettings::getApproveRecipients ( )

Definition at line 116 of file class.ilRegistrationSettings.php.

{
return $this->approve_recipient_ids ? $this->approve_recipient_ids : array();
}
ilRegistrationSettings::getRegistrationType ( )

Definition at line 50 of file class.ilRegistrationSettings.php.

{
return $this->registration_type;
}
ilRegistrationSettings::getUnknown ( )

Definition at line 120 of file class.ilRegistrationSettings.php.

{
return implode(',',$this->unknown);
}
ilRegistrationSettings::ilRegistrationSettings ( )

Definition at line 45 of file class.ilRegistrationSettings.php.

References __read().

{
$this->__read();
}

+ Here is the call graph for this function:

ilRegistrationSettings::passwordGenerationEnabled ( )

Definition at line 79 of file class.ilRegistrationSettings.php.

{
return $this->password_generation_enabled;
}
ilRegistrationSettings::roleSelectionEnabled ( )

Definition at line 125 of file class.ilRegistrationSettings.php.

References IL_REG_ROLES_FIXED.

{
return $this->role_type == IL_REG_ROLES_FIXED;
}
ilRegistrationSettings::save ( )

Definition at line 164 of file class.ilRegistrationSettings.php.

{
global $ilias;
$ilias->setSetting('reg_role_assignment',$this->role_type);
$ilias->setSetting('new_registration_type',$this->registration_type);
$ilias->setSetting('passwd_reg_auto_generate',$this->password_generation_enabled);
$ilias->setSetting('approve_recipient',addslashes(serialize($this->approve_recipient_ids)));
$ilias->setSetting('reg_access_limitation',$this->access_limitation);
return true;
}
ilRegistrationSettings::setAccessLimitation (   $a_access_limitation)

Definition at line 93 of file class.ilRegistrationSettings.php.

{
$this->access_limitation = $a_access_limitation;
}
ilRegistrationSettings::setApproveRecipientLogins (   $a_rec_string)

Definition at line 98 of file class.ilRegistrationSettings.php.

References ilObjUser\_lookupId().

{
$this->approve_recipient_logins = $a_rec_string;
$this->approve_recipient_ids = array();
// convert logins to array of ids
foreach(explode(',',trim($this->approve_recipient_logins)) as $login)
{
if($uid = ilObjUser::_lookupId(trim($login)))
{
$this->approve_recipient_ids[] = $uid;
}
}
}

+ Here is the call graph for this function:

ilRegistrationSettings::setPasswordGenerationStatus (   $a_status)

Definition at line 83 of file class.ilRegistrationSettings.php.

{
$this->password_generation_enabled = $a_status;
}
ilRegistrationSettings::setRegistrationType (   $a_type)

Definition at line 54 of file class.ilRegistrationSettings.php.

{
$this->registration_type = $a_type;
}
ilRegistrationSettings::setRoleType (   $a_type)

Definition at line 133 of file class.ilRegistrationSettings.php.

{
$this->role_type = $a_type;
}
ilRegistrationSettings::validate ( )

Definition at line 139 of file class.ilRegistrationSettings.php.

References ilObjUser\_lookupId(), and getApproveRecipientLogins().

{
global $ilAccess;
$this->unknown = array();
$this->mail_perm = array();
$login_arr = explode(',',$this->getApproveRecipientLogins());
$login_arr = $login_arr ? $login_arr : array();
foreach($login_arr as $recipient)
{
if(!$recipient = trim($recipient))
{
continue;
}
if(!ilObjUser::_lookupId($recipient))
{
$this->unknown[] = $recipient;
continue;
}
}
return count($this->unknown) ? 1 : 0;
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: