ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCASSettings Class Reference

Description of class. More...

+ Collaboration diagram for ilCASSettings:

Public Member Functions

 setServer ($a_server)
 getServer ()
 setPort ($a_port)
 getPort ()
 setUri ($a_uri)
 getUri ()
 setLoginInstruction ($a_inst)
 getLoginInstruction ()
 setActive ($a_active)
 isActive ()
 enableUserCreation ($a_uc)
 isUserCreationEnabled ()
 enableLocalAuthentication ($a_local)
 isLocalAuthenticationEnabled ()
 setDefaultRole ($a_role)
 getDefaultRole ()
 save ()
 Save settings.

Static Public Member Functions

static getInstance ()
 Get singleton instance.

Data Fields

const SYNC_DISABLED = 0
const SYNC_CAS = 1
const SYNC_LDAP = 2

Protected Member Functions

 __construct ()
 Singleton constructor.

Private Member Functions

 read ()
 Read settings.
 getStorage ()
 Get storage object.

Private Attributes

 $storage = null
 $server = ''
 $port = 0
 $uri = ''
 $login_instructions = ''
 $active = 0
 $create_users = 0
 $allow_local = 0
 $user_default_role = 0

Static Private Attributes

static $instance = null

Detailed Description

Description of class.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 10 of file class.ilCASSettings.php.

Constructor & Destructor Documentation

ilCASSettings::__construct ( )
protected

Singleton constructor.

Definition at line 32 of file class.ilCASSettings.php.

References read().

{
$this->storage = new ilSetting();
$this->read();
}

+ Here is the call graph for this function:

Member Function Documentation

ilCASSettings::enableLocalAuthentication (   $a_local)

Definition at line 110 of file class.ilCASSettings.php.

Referenced by read().

{
$this->allow_local = $a_local;
}

+ Here is the caller graph for this function:

ilCASSettings::enableUserCreation (   $a_uc)

Definition at line 100 of file class.ilCASSettings.php.

Referenced by read().

{
$this->create_users = $a_uc;
}

+ Here is the caller graph for this function:

ilCASSettings::getDefaultRole ( )

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

Referenced by save().

{
return $this->default_role;
}

+ Here is the caller graph for this function:

static ilCASSettings::getInstance ( )
static

Get singleton instance.

Definition at line 41 of file class.ilCASSettings.php.

References $instance.

Referenced by ilCASSettingsGUI\__construct().

{
if(self::$instance)
{
}
return self::$instance = new ilCASSettings();
}

+ Here is the caller graph for this function:

ilCASSettings::getLoginInstruction ( )

Definition at line 85 of file class.ilCASSettings.php.

References $login_instructions.

Referenced by save().

+ Here is the caller graph for this function:

ilCASSettings::getPort ( )

Definition at line 65 of file class.ilCASSettings.php.

References $port.

Referenced by save().

{
return $this->port;
}

+ Here is the caller graph for this function:

ilCASSettings::getServer ( )

Definition at line 55 of file class.ilCASSettings.php.

References $server.

Referenced by save().

{
return $this->server;
}

+ Here is the caller graph for this function:

ilCASSettings::getStorage ( )
private

Get storage object.

Returns
ilSetting

Definition at line 167 of file class.ilCASSettings.php.

References $storage.

Referenced by read(), and save().

{
}

+ Here is the caller graph for this function:

ilCASSettings::getUri ( )

Definition at line 75 of file class.ilCASSettings.php.

References $uri.

Referenced by save().

{
return $this->uri;
}

+ Here is the caller graph for this function:

ilCASSettings::isActive ( )

Definition at line 95 of file class.ilCASSettings.php.

References $active.

Referenced by save().

{
return $this->active;
}

+ Here is the caller graph for this function:

ilCASSettings::isLocalAuthenticationEnabled ( )

Definition at line 115 of file class.ilCASSettings.php.

References $allow_local.

Referenced by save().

{
}

+ Here is the caller graph for this function:

ilCASSettings::isUserCreationEnabled ( )

Definition at line 105 of file class.ilCASSettings.php.

References $create_users.

Referenced by save().

{
}

+ Here is the caller graph for this function:

ilCASSettings::read ( )
private

Read settings.

Definition at line 148 of file class.ilCASSettings.php.

References enableLocalAuthentication(), enableUserCreation(), getStorage(), setActive(), setDefaultRole(), setLoginInstruction(), setPort(), setServer(), and setUri().

Referenced by __construct().

{
$this->setServer($this->getStorage()->get('cas_server',$this->server));
$this->setPort($this->getStorage()->get('cas_port',$this->port));
$this->setUri($this->getStorage()->get('cas_uri',$this->uri));
$this->setActive($this->getStorage()->get('cas_active',$this->active));
$this->setDefaultRole($this->getStorage()->get('cas_user_default_role',$this->default_role));
$this->setLoginInstruction($this->getStorage()->get('cas_login_instructions',$this->login_instructions));
$this->enableLocalAuthentication($this->getStorage()->get('cas_allow_local',$this->allow_local));
$this->enableUserCreation($this->getStorage()->get('cas_create_users',$this->create_users));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilCASSettings::save ( )

Save settings.

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

References getDefaultRole(), getLoginInstruction(), getPort(), getServer(), getStorage(), getUri(), isActive(), isLocalAuthenticationEnabled(), and isUserCreationEnabled().

{
$this->getStorage()->set('cas_server', $this->getServer());
$this->getStorage()->set('cas_port', $this->getPort());
$this->getStorage()->set('cas_uri', $this->getUri());
$this->getStorage()->set('cas_login_instructions', $this->getLoginInstruction());
$this->getStorage()->set('cas_active', $this->isActive());
$this->getStorage()->set('cas_create_users', $this->isUserCreationEnabled());
$this->getStorage()->set('cas_allow_local', $this->isLocalAuthenticationEnabled());
$this->getStorage()->set('cas_user_default_role', $this->getDefaultRole());
}

+ Here is the call graph for this function:

ilCASSettings::setActive (   $a_active)

Definition at line 90 of file class.ilCASSettings.php.

Referenced by read().

{
$this->active = $a_active;
}

+ Here is the caller graph for this function:

ilCASSettings::setDefaultRole (   $a_role)

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

Referenced by read().

{
$this->default_role = $a_role;
}

+ Here is the caller graph for this function:

ilCASSettings::setLoginInstruction (   $a_inst)

Definition at line 80 of file class.ilCASSettings.php.

Referenced by read().

{
$this->login_instructions = $a_inst;
}

+ Here is the caller graph for this function:

ilCASSettings::setPort (   $a_port)

Definition at line 60 of file class.ilCASSettings.php.

Referenced by read().

{
$this->port = $a_port;
}

+ Here is the caller graph for this function:

ilCASSettings::setServer (   $a_server)

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

Referenced by read().

{
$this->server = $a_server;
}

+ Here is the caller graph for this function:

ilCASSettings::setUri (   $a_uri)

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

Referenced by read().

{
$this->uri = $a_uri;
}

+ Here is the caller graph for this function:

Field Documentation

ilCASSettings::$active = 0
private

Definition at line 24 of file class.ilCASSettings.php.

Referenced by isActive().

ilCASSettings::$allow_local = 0
private

Definition at line 26 of file class.ilCASSettings.php.

Referenced by isLocalAuthenticationEnabled().

ilCASSettings::$create_users = 0
private

Definition at line 25 of file class.ilCASSettings.php.

Referenced by isUserCreationEnabled().

ilCASSettings::$instance = null
staticprivate

Definition at line 17 of file class.ilCASSettings.php.

Referenced by getInstance().

ilCASSettings::$login_instructions = ''
private

Definition at line 23 of file class.ilCASSettings.php.

Referenced by getLoginInstruction().

ilCASSettings::$port = 0
private

Definition at line 21 of file class.ilCASSettings.php.

Referenced by getPort().

ilCASSettings::$server = ''
private

Definition at line 20 of file class.ilCASSettings.php.

Referenced by getServer().

ilCASSettings::$storage = null
private

Definition at line 19 of file class.ilCASSettings.php.

Referenced by getStorage().

ilCASSettings::$uri = ''
private

Definition at line 22 of file class.ilCASSettings.php.

Referenced by getUri().

ilCASSettings::$user_default_role = 0
private

Definition at line 27 of file class.ilCASSettings.php.

const ilCASSettings::SYNC_CAS = 1
const ilCASSettings::SYNC_DISABLED = 0
const ilCASSettings::SYNC_LDAP = 2

Definition at line 15 of file class.ilCASSettings.php.

Referenced by ilCASSettingsGUI\save().


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