61 if (self::$instance) {
62 return self::$instance;
75 $this->purposeSuffixes = $purpose_filetypes;
96 $this->defaultAccess = $value ==
"users" ?
"users" :
"public";
123 foreach ($this->purposeSuffixes as $purpose => $filetypes) {
124 $this->storage->set($purpose .
"_types", implode(
",", $filetypes));
126 $this->storage->set(
"defaultaccess", $this->defaultAccess);
127 $this->storage->set(
"mimetypes", implode(
",", $this->
getMimeTypes()));
139 foreach ($this->purposeSuffixes as $purpose => $filetypes) {
140 if ($this->storage->get($purpose .
"_types") !=
false) {
141 $this->purposeSuffixes[$purpose] = explode(
",", $this->storage->get($purpose .
"_types"));
145 if ($this->storage->get(
"mimetypes")) {
146 $this->
setMimeTypes(explode(
",", $this->storage->get(
"mimetypes")));
157 include_once(
'./Services/Administration/classes/class.ilSetting.php');
159 include_once(
'./Modules/MediaCast/classes/class.ilObjMediaCast.php');
162 $this->purposeSuffixes[
"Standard"] = array(
"mp3",
"flv",
"mp4",
"mov",
"wmv",
"gif",
"png",
"jpg",
"jpeg");
163 $this->purposeSuffixes[
"AudioPortable"] = array(
"mp3");
164 $this->purposeSuffixes[
"VideoPortable"] = array(
"mp4",
"mov");
166 include_once(
"./Services/Utilities/classes/class.ilMimeTypeUtil.php");