55 return $this->
strToBool($this->
get(self::F_DOWNLOAD_ASCII_FILENAME,
'1'));
60 $this->
set(self::F_DOWNLOAD_ASCII_FILENAME, $this->
boolToStr($value));
65 return $this->
strToBool($this->
get(self::F_SHOW_AMOUNT_OF_DOWNLOADS,
'1'));
70 $this->
set(self::F_SHOW_AMOUNT_OF_DOWNLOADS, $this->
boolToStr($value));
75 $extensions =
array_map(fn(
string $extension):
string => strtolower(trim($extension,
" \t\n\r\0\x0B,")), $extensions);
77 $this->
set(self::F_INLINE_FILE_EXTENSIONS, $this->
arrayToStr($extensions));
84 self::F_INLINE_FILE_EXTENSIONS,
85 $this->
arrayToStr($this->default_inline_extensions)
92 return $this->
strToInt($this->
get(self::F_BG_LIMIT,
'200'));
97 $this->
set(self::F_BG_LIMIT, $this->
intToStr($limit));
104 return $value ===
'1';
109 return $value ?
'1' :
'0';
114 return (
string) $int;
124 return implode(self::SEPARATOR, $array);
129 return explode(self::SEPARATOR, $str);
const F_DOWNLOAD_ASCII_FILENAME
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInlineFileExtensions()
const F_SHOW_AMOUNT_OF_DOWNLOADS
setDownloadLimitInMB(int $limit)
isShowAmountOfDownloads()
setShowAmountOfDownloads(bool $value)
isDownloadWithAsciiFileName()
array $default_inline_extensions
setDownloadWithAsciiFileName(bool $value)
const F_INLINE_FILE_EXTENSIONS
__construct(Container $dic, ilPlugin $plugin)
setInlineFileExtensions(array $extensions)