39 include_once
"classes/class.ilObject.php";
90 $this->
ilObject($a_id,$a_call_by_reference);
101 $this->webdavEnabled = $newValue;
120 $this->webdavActionsVisible = $newValue;
145 $this->customWebfolderInstructions = $newValue;
154 if (strlen($this->customWebfolderInstructions) == 0)
156 require_once
'Services/WebDAV/classes/class.ilDAVServer.php';
188 $this->customWebfolderInstructionsEnabled = $newValue;
200 $this->inlineFileExtensions = $newValue;
219 $this->downloadWithUploadedFilename = $newValue;
260 global $ilClientIniFile;
263 $ilClientIniFile->error(null);
265 if (! $ilClientIniFile->groupExists(
'file_access'))
267 $ilClientIniFile->addGroup(
'file_access');
269 $ilClientIniFile->setVariable(
'file_access',
'webdav_enabled', $this->webdavEnabled ?
'1' :
'0');
270 $ilClientIniFile->setVariable(
'file_access',
'webdav_actions_visible', $this->webdavActionsVisible ?
'1' :
'0');
271 $ilClientIniFile->setVariable(
'file_access',
'download_with_uploaded_filename', $this->downloadWithUploadedFilename ?
'1' :
'0');
272 $ilClientIniFile->write();
274 if ($ilClientIniFile->getError()) {
276 $ilErr->raiseError($ilClientIniFile->getError(),$ilErr->WARNING);
279 require_once
'Services/Administration/classes/class.ilSetting.php';
280 $settings =
new ilSetting(
'file_access');
281 $settings->set(
'inline_file_extensions', $this->inlineFileExtensions);
282 $settings->set(
'custom_webfolder_instructions_enabled', $this->customWebfolderInstructionsEnabled ?
'1' :
'0');
283 $settings->set(
'custom_webfolder_instructions', $this->customWebfolderInstructions);
289 public function read($a_force_db =
false)
293 global $ilClientIniFile;
294 $this->webdavEnabled = $ilClientIniFile->readVariable(
'file_access',
'webdav_enabled') ==
'1';
295 $this->webdavActionsVisible = $ilClientIniFile->readVariable(
'file_access',
'webdav_actions_visible') ==
'1';
296 $this->downloadWithUploadedFilename = $ilClientIniFile->readVariable(
'file_access',
'download_with_uploaded_filename') ==
'1';
297 $ilClientIniFile->ERROR =
false;
299 require_once
'Services/Administration/classes/class.ilSetting.php';
300 $settings =
new ilSetting(
'file_access');
301 $this->inlineFileExtensions = $settings->get(
'inline_file_extensions',
'');
302 $this->customWebfolderInstructionsEnabled = $settings->get(
'custom_webfolder_instructions_enabled',
'0') ==
'1';
303 $this->customWebfolderInstructions = $settings->get(
'custom_webfolder_instructions',
'');