ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilUserAccountSettings Class Reference

user account settings More...

+ Collaboration diagram for ilUserAccountSettings:

Public Member Functions

 isLocalUserAdministrationEnabled ()
 Check if local user administration is enabled. More...
 
 enableLocalUserAdministration ($a_status)
 Enable local user administration. More...
 
 isUserAccessRestricted ()
 Check if user access is restricted. More...
 
 restrictUserAccess ($a_status)
 En/disable user access. More...
 
 update ()
 Update settings. More...
 

Static Public Member Functions

static getInstance ()
 Singelton get instance. More...
 

Protected Member Functions

 __construct ()
 Singleton constructor. More...
 

Private Member Functions

 read ()
 Read user account settings. More...
 

Private Attributes

 $storage = null
 
 $lua_enabled = true
 
 $lua_access_filter = false
 

Static Private Attributes

static $instance = null
 

Detailed Description

user account settings

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilUserAccountSettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserAccountSettings::__construct ( )
protected

Singleton constructor.

Returns

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

References read().

27  {
28  $this->storage = new ilSetting('user_account');
29  $this->read();
30  }
read()
Read user account settings.
+ Here is the call graph for this function:

Member Function Documentation

◆ enableLocalUserAdministration()

ilUserAccountSettings::enableLocalUserAdministration (   $a_status)

Enable local user administration.

Parameters
object$a_status
Returns

Definition at line 58 of file class.ilUserAccountSettings.php.

Referenced by read().

59  {
60  $this->lua_enabled = $a_status;
61  }
+ Here is the caller graph for this function:

◆ getInstance()

static ilUserAccountSettings::getInstance ( )
static

◆ isLocalUserAdministrationEnabled()

ilUserAccountSettings::isLocalUserAdministrationEnabled ( )

Check if local user administration is enabled.

Returns
bool

Definition at line 48 of file class.ilUserAccountSettings.php.

References $lua_enabled.

Referenced by update().

49  {
50  return (bool) $this->lua_enabled;
51  }
+ Here is the caller graph for this function:

◆ isUserAccessRestricted()

ilUserAccountSettings::isUserAccessRestricted ( )

Check if user access is restricted.

Returns

Definition at line 67 of file class.ilUserAccountSettings.php.

References $lua_access_filter.

Referenced by update().

68  {
69  return (bool) $this->lua_access_filter;
70  }
+ Here is the caller graph for this function:

◆ read()

ilUserAccountSettings::read ( )
private

Read user account settings.

Returns

Definition at line 96 of file class.ilUserAccountSettings.php.

References enableLocalUserAdministration(), and restrictUserAccess().

Referenced by __construct().

97  {
98  $this->enableLocalUserAdministration($this->storage->get('lua_enabled', $this->isLocalUserAdministrationEnabled()));
99  $this->restrictUserAccess($this->storage->get('lua_access_restricted', $this->isUserAccessRestricted()));
100  }
restrictUserAccess($a_status)
En/disable user access.
enableLocalUserAdministration($a_status)
Enable local user administration.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ restrictUserAccess()

ilUserAccountSettings::restrictUserAccess (   $a_status)

En/disable user access.

Parameters
object$a_status
Returns

Definition at line 77 of file class.ilUserAccountSettings.php.

Referenced by read().

78  {
79  $this->lua_access_filter = $a_status;
80  }
+ Here is the caller graph for this function:

◆ update()

ilUserAccountSettings::update ( )

Update settings.

Returns

Definition at line 86 of file class.ilUserAccountSettings.php.

References isLocalUserAdministrationEnabled(), and isUserAccessRestricted().

87  {
88  $this->storage->set('lua_enabled', $this->isLocalUserAdministrationEnabled());
89  $this->storage->set('lua_access_restricted', $this->isUserAccessRestricted());
90  }
isUserAccessRestricted()
Check if user access is restricted.
isLocalUserAdministrationEnabled()
Check if local user administration is enabled.
+ Here is the call graph for this function:

Field Documentation

◆ $instance

ilUserAccountSettings::$instance = null
staticprivate

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

◆ $lua_access_filter

ilUserAccountSettings::$lua_access_filter = false
private

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

Referenced by isUserAccessRestricted().

◆ $lua_enabled

ilUserAccountSettings::$lua_enabled = true
private

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

Referenced by isLocalUserAdministrationEnabled().

◆ $storage

ilUserAccountSettings::$storage = null
private

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


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