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;
An exception for terminatinating execution or to throw for unit testing.
isAllInOneCategoryEnabled()
getAuthMode()
Get auth mode.
initStorage()
Init storage.
isEmptyContainerCreationEnabled()
Check if the creation of empty containers (pathes without courses) is enabled.
setRoleMappings($a_mappings)
isDirectoryMappingEnabled()
Check if node mapping is enabled.
__construct($a_server_id, $a_mid)
Singeleton constructor.
enableEmptyContainerCreation($a_status)
enable creation of empty containers
enableCourseAllocation($a_stat)
isCourseAllocationEnabled()
$course_active
Course allocation.
enableDirectoryMapping($a_status)
Enable node mapping.
static getInstance()
Get singeleton instance.
read()
Read settings from db.
update()
Save settings to db.
getServerId()
Get server id of setting.
setAuthMode($a_auth_mode)
Set user auth mode.
enableAttributeMapping($a_stat)
getMid()
Get mid of sender.
isAttributeMappingEnabled()
getDefaultCourseCategory()
setDefaultCourseCategory($a_def)
static getInstanceByServerMid($a_server_id, $a_mid)
Get instance.
setAllInOneCategory($a_cat)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.