39 include_once
"classes/class.ilObject.php";
80 $this->
ilObject($a_id,$a_call_by_reference);
91 $this->webdavEnabled = $newValue;
110 $this->webdavActionsVisible = $newValue;
135 $this->customWebfolderInstructions = $newValue;
144 if (strlen($this->customWebfolderInstructions) == 0)
146 require_once
'Services/WebDAV/classes/class.ilDAVServer.php';
178 $this->customWebfolderInstructionsEnabled = $newValue;
190 $this->inlineFileExtensions = $newValue;
230 global $ilClientIniFile;
232 if (! $ilClientIniFile->groupExists(
'file_access'))
234 $ilClientIniFile->addGroup(
'file_access');
236 $ilClientIniFile->setVariable(
'file_access',
'webdav_enabled', $this->webdavEnabled ?
'1' :
'0');
237 $ilClientIniFile->setVariable(
'file_access',
'webdav_actions_visible', $this->webdavActionsVisible ?
'1' :
'0');
238 $ilClientIniFile->write();
240 if ($ilClientIniFile->getError()) {
242 $ilErr->raiseError($ilClientIniFile->getError(),$ilErr->WARNING);
245 require_once
'Services/Administration/classes/class.ilSetting.php';
246 $settings =
new ilSetting(
'file_access');
247 $settings->set(
'inline_file_extensions', $this->inlineFileExtensions);
248 $settings->set(
'custom_webfolder_instructions_enabled', $this->customWebfolderInstructionsEnabled ?
'1' :
'0');
249 $settings->set(
'custom_webfolder_instructions', $this->customWebfolderInstructions);
255 public function read($a_force_db =
false)
259 global $ilClientIniFile;
260 $this->webdavEnabled = $ilClientIniFile->readVariable(
'file_access',
'webdav_enabled') ==
'1';
261 $this->webdavActionsVisible = $ilClientIniFile->readVariable(
'file_access',
'webdav_actions_visible') ==
'1';
262 $ilClientIniFile->ERROR =
false;
264 require_once
'Services/Administration/classes/class.ilSetting.php';
265 $settings =
new ilSetting(
'file_access');
266 $this->inlineFileExtensions = $settings->get(
'inline_file_extensions',
'');
267 $this->customWebfolderInstructionsEnabled = $settings->get(
'custom_webfolder_instructions_enabled',
'0') ==
'1';
268 $this->customWebfolderInstructions = $settings->get(
'custom_webfolder_instructions',
'');