76 $this->purposeSuffixes = $purpose_filetypes;
95 $this->defaultAccess = $value ==
"users" ?
"users" :
"public";
120 foreach ($this->purposeSuffixes as $purpose => $filetypes) {
121 $this->storage->set($purpose .
"_types", implode(
",",$filetypes));
123 $this->storage->set(
"defaultaccess",$this->defaultAccess);
124 $this->storage->set(
"mimetypes", implode(
",", $this->
getMimeTypes()));
136 foreach ($this->purposeSuffixes as $purpose => $filetypes) {
137 if ($this->storage->get($purpose.
"_types") !=
false) {
138 $this->purposeSuffixes[$purpose] = explode(
",",$this->storage->get($purpose.
"_types"));
142 if ($this->storage->get(
"mimetypes"))
143 $this->
setMimeTypes(explode(
",", $this->storage->get(
"mimetypes")));
153 include_once(
'./Services/Administration/classes/class.ilSetting.php');
155 include_once(
'./Modules/MediaCast/classes/class.ilObjMediaCast.php');
158 $this->purposeSuffixes[
"Standard"] = array(
"mp3",
"flv",
"mp4",
"m4v",
"mov",
"wmv",
"gif",
"png");
159 $this->purposeSuffixes[
"AudioPortable"] = array(
"mp3");
160 $this->purposeSuffixes[
"VideoPortable"] = array(
"mp4",
"m4v",
"mov");
162 require_once
'Services/MediaObjects/classes/class.ilObjMediaObject.php';