39 $this->server_id = $a_server_id;
52 $GLOBALS[
'ilLog']->write(__METHOD__.
': Deprecated call...');
57 return self::$instance;
70 if(self::$instances[$a_server_id.
'_'.$a_mid])
72 return self::$instances[$a_server_id.
'_'.$a_mid];
74 return self::$instances[$a_server_id.
'_'.$a_mid] =
new self($a_server_id,$a_mid);
110 $this->directory_active = $a_status;
119 $this->create_empty_containers = $a_status;
133 $this->course_active = $a_stat;
143 $this->default_cat = $a_def;
158 $this->allinone = $a_stat;
163 $this->allinone_cat = $a_cat;
173 $this->attributes = $a_stat;
183 $this->role_mappings = $a_mappings;
isAttributeMappingEnabled()
enableCourseAllocation($a_stat)
update()
Save settings to db.
setRoleMappings($a_mappings)
getServerId()
Get server id of setting.
initStorage()
Init storage.
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.
__construct($a_server_id, $a_mid)
Singeleton constructor.
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.