ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilUserAccountSettings Class Reference

user account settings More...

+ Collaboration diagram for ilUserAccountSettings:

Public Member Functions

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

Static Public Member Functions

static getInstance ()
 Singelton get instance.

Protected Member Functions

 __construct ()
 Singleton constructor.

Private Member Functions

 read ()
 Read user account settings.

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

ilUserAccountSettings::__construct ( )
protected

Singleton constructor.

Returns

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

References read().

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

+ Here is the call graph for this function:

Member Function Documentation

ilUserAccountSettings::enableLocalUserAdministration (   $a_status)

Enable local user administration.

Parameters
object$a_status
Returns

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

Referenced by read().

{
$this->lua_enabled = $a_status;
}

+ Here is the caller graph for this function:

static ilUserAccountSettings::getInstance ( )
static

Singelton get instance.

Returns
object ilUserAccountSettings

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

References $instance.

Referenced by ilObjUser\_getUsersOnline(), ilUserFilter\filter(), ilObjUserFolderGUI\generalSettingsObject(), ilObjCategoryGUI\getTabs(), ilUserFilter\init(), ilObjUserFolderGUI\saveGeneralSettingsObject(), and ilObjUserFolderGUI\viewObject().

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

+ Here is the caller graph for this function:

ilUserAccountSettings::isLocalUserAdministrationEnabled ( )

Check if local user administration is enabled.

Returns
bool

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

References $lua_enabled.

Referenced by update().

{
return (bool) $this->lua_enabled;
}

+ Here is the caller graph for this function:

ilUserAccountSettings::isUserAccessRestricted ( )

Check if user access is restricted.

Returns

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

References $lua_access_filter.

Referenced by update().

{
return (bool) $this->lua_access_filter;
}

+ Here is the caller graph for this function:

ilUserAccountSettings::read ( )
private

Read user account settings.

Returns

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

References enableLocalUserAdministration(), and restrictUserAccess().

Referenced by __construct().

{
$this->enableLocalUserAdministration($this->storage->get('lua_enabled',$this->isLocalUserAdministrationEnabled()));
$this->restrictUserAccess($this->storage->get('lua_access_restricted',$this->isUserAccessRestricted()));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilUserAccountSettings::restrictUserAccess (   $a_status)

En/disable user access.

Parameters
object$a_status
Returns

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

Referenced by read().

{
$this->lua_access_filter = $a_status;
}

+ Here is the caller graph for this function:

ilUserAccountSettings::update ( )

Update settings.

Returns

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

References isLocalUserAdministrationEnabled(), and isUserAccessRestricted().

{
$this->storage->set('lua_enabled', $this->isLocalUserAdministrationEnabled());
$this->storage->set('lua_access_restricted', $this->isUserAccessRestricted());
}

+ Here is the call graph for this function:

Field Documentation

ilUserAccountSettings::$instance = null
staticprivate

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

Referenced by getInstance().

ilUserAccountSettings::$lua_access_filter = false
private

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

Referenced by isUserAccessRestricted().

ilUserAccountSettings::$lua_enabled = true
private

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

Referenced by isLocalUserAdministrationEnabled().

ilUserAccountSettings::$storage = null
private

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


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