ILIAS
Release_4_2_x_branch Revision 61807
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilUserAccountSettings.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
13
class
ilUserAccountSettings
14
{
15
private
static
$instance
= null;
16
17
private
$storage
= null;
18
19
private
$lua_enabled
=
true
;
20
private
$lua_access_filter
=
false
;
21
26
protected
function
__construct
()
27
{
28
$this->storage =
new
ilSetting
(
'user_account'
);
29
$this->
read
();
30
}
31
36
public
static
function
getInstance
()
37
{
38
if
(self::$instance)
39
{
40
return
self::$instance
;
41
}
42
return
self::$instance =
new
ilUserAccountSettings
();
43
}
44
49
public
function
isLocalUserAdministrationEnabled
()
50
{
51
return
(
bool
)
$this->lua_enabled
;
52
}
53
59
public
function
enableLocalUserAdministration
($a_status)
60
{
61
$this->lua_enabled = $a_status;
62
}
63
68
public
function
isUserAccessRestricted
()
69
{
70
return
(
bool
)
$this->lua_access_filter
;
71
}
72
78
public
function
restrictUserAccess
($a_status)
79
{
80
$this->lua_access_filter = $a_status;
81
}
82
87
public
function
update
()
88
{
89
$this->storage->set(
'lua_enabled'
, $this->
isLocalUserAdministrationEnabled
());
90
$this->storage->set(
'lua_access_restricted'
, $this->
isUserAccessRestricted
());
91
}
92
97
private
function
read
()
98
{
99
$this->
enableLocalUserAdministration
($this->storage->get(
'lua_enabled'
,$this->isLocalUserAdministrationEnabled()));
100
$this->
restrictUserAccess
($this->storage->get(
'lua_access_restricted'
,$this->isUserAccessRestricted()));
101
}
102
}
103
?>
Services
User
classes
class.ilUserAccountSettings.php
Generated on Fri Apr 22 2016 19:04:23 for ILIAS by
1.8.1.2 (using
Doxyfile
)