52 return $this->
strToBool($this->
get(self::F_DOWNLOAD_ASCII_FILENAME,
'1'));
57 $this->
set(self::F_DOWNLOAD_ASCII_FILENAME, $this->
boolToStr($value));
62 return $this->
strToBool($this->
get(self::F_SHOW_AMOUNT_OF_DOWNLOADS,
'1'));
67 $this->
set(self::F_SHOW_AMOUNT_OF_DOWNLOADS, $this->
boolToStr($value));
72 $extensions = array_map(
function (
string $extension):
string {
73 return strtolower(trim($extension,
" \t\n\r\0\x0B,"));
76 $this->
set(self::F_INLINE_FILE_EXTENSIONS, $this->
arrayToStr($extensions));
83 self::F_INLINE_FILE_EXTENSIONS,
84 $this->
arrayToStr($this->default_inline_extensions)
91 return $this->
strToInt($this->
get(self::F_BG_LIMIT,
'200'));
96 $this->
set(self::F_BG_LIMIT, $this->
intToStr($limit));
103 return $value ===
'1';
108 return $value ?
'1' :
'0';
113 return (
string) $int;
123 return implode(self::SEPARATOR, $array);
128 return explode(self::SEPARATOR, $str);
const F_SHOW_AMOUNT_OF_DOWNLOADS
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInlineFileExtensions()
const F_INLINE_FILE_EXTENSIONS
isDownloadWithAsciiFileName()
setInlineFileExtensions(array $extensions)
setDownloadWithAsciiFileName(bool $value)
isShowAmountOfDownloads()
const F_DOWNLOAD_ASCII_FILENAME
setDownloadLimitInMB(int $limit)
setShowAmountOfDownloads(bool $value)
array $default_inline_extensions