29 "video/mp4" =>
"video/mp4",
30 "video/webm" =>
"video/webm",
31 "audio/mpeg" =>
"audio/mpeg",
32 "image/jpeg" =>
"image/jpeg",
33 "image/png" =>
"image/png",
34 "image/gif" =>
"image/gif",
35 "image/svg+xml" =>
"image/svg+xml" 54 if (self::$instance) {
55 return self::$instance;
62 $this->purposeSuffixes = $purpose_filetypes;
77 $this->defaultAccess = $value ===
"users" ?
"users" :
"public";
92 $this->video_threshold = $a_val;
102 foreach ($this->purposeSuffixes as $purpose => $filetypes) {
103 $this->storage->set($purpose .
"_types", implode(
",", $filetypes));
105 $this->storage->set(
"defaultaccess", $this->defaultAccess);
106 $this->storage->set(
"video_threshold", $this->video_threshold);
107 $this->storage->set(
"mimetypes", implode(
",", $this->
getMimeTypes()));
112 foreach ($this->purposeSuffixes as $purpose => $filetypes) {
113 if ($this->storage->get($purpose .
"_types") !=
false) {
114 $sf = explode(
",", $this->storage->get($purpose .
"_types"));
115 $sf = array_filter($sf,
function (
$c) {
116 return in_array(
$c, $this->supported_suffixes);
118 $this->purposeSuffixes[$purpose] = $sf;
123 if ($this->storage->get(
"mimetypes")) {
124 $mt = explode(
",", $this->storage->get(
"mimetypes"));
125 $mt = array_filter($mt,
function (
$c) {
126 return in_array(
$c, $this->supported_mime_types);
140 $mimeTypes = array_unique(array_values(MimeType::getExt2MimeMap()));
sort()
description: > Example for rendering a Sort Glyph.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null