40 $this->server_id = $a_server_id;
53 $GLOBALS[
'ilLog']->write(__METHOD__.
': Deprecated call...');
58 return self::$instance;
71 if(self::$instances[$a_server_id.
'_'.$a_mid])
73 return self::$instances[$a_server_id.
'_'.$a_mid];
75 return self::$instances[$a_server_id.
'_'.$a_mid] =
new self($a_server_id,$a_mid);
111 $this->directory_active = $a_status;
120 $this->create_empty_containers = $a_status;
134 $this->course_active = $a_stat;
144 $this->default_cat = $a_def;
159 $this->allinone = $a_stat;
164 $this->allinone_cat = $a_cat;
174 $this->attributes = $a_stat;
184 $this->role_mappings = $a_mappings;
198 $this->auth_mode = $a_auth_mode;
isAttributeMappingEnabled()
enableCourseAllocation($a_stat)
update()
Save settings to db.
setRoleMappings($a_mappings)
getServerId()
Get server id of setting.
initStorage()
Init storage.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static getInstanceByServerMid($a_server_id, $a_mid)
Get instance.
enableDirectoryMapping($a_status)
Enable node mapping.
getDefaultCourseCategory()
isAllInOneCategoryEnabled()
enableEmptyContainerCreation($a_status)
enable creation of empty containers
static getInstance()
Get singeleton instance.
$course_active
Course allocation.
read()
Read settings from db.
getAuthMode()
Get auth mode.
__construct($a_server_id, $a_mid)
Singeleton constructor.
Create styles array
The data for the language used.
enableAttributeMapping($a_stat)
setAllInOneCategory($a_cat)
getMid()
Get mid of sender.
isCourseAllocationEnabled()
setDefaultCourseCategory($a_def)
isDirectoryMappingEnabled()
Check if node mapping is enabled.
isEmptyContainerCreationEnabled()
Check if the creation of empty containers (pathes without courses) is enabled.
setAuthMode($a_auth_mode)
Set user auth mode.