63 $this->
set(self::F_PREVIEW_PERSISTING, $this->
boolToStr($a_value));
68 return $this->
strToBool($this->
get(self::F_PREVIEW_PERSISTING,
'1'));
73 $this->
set(self::F_TILE_PREVIEWS, $this->
boolToStr($a_value));
78 return $this->
strToBool($this->
get(self::F_TILE_PREVIEWS,
'1'));
83 return $this->imagick->isRunning();
88 $this->
set(self::F_PREVIEW_ENABLED, $this->
boolToStr($a_value));
96 return $this->
strToBool($this->
get(self::F_PREVIEW_ENABLED,
'1'));
103 self::V_MAX_PREVIEWS_MIN,
104 self::V_MAX_PREVIEWS_MAX,
105 self::V_MAX_PREVIEWS_DEFAULT
107 $this->
set(self::F_MAX_PREVIEWS_PER_OBJECT, $this->
intToStr($max_previews));
112 return $this->
strToInt($this->
get(self::F_MAX_PREVIEWS_PER_OBJECT, (
string) self::V_MAX_PREVIEWS_DEFAULT));
119 self::V_IMAGE_SIZE_MIN,
120 self::V_IMAGE_SIZE_MAX,
121 self::V_IMAGE_SIZE_DEFAULT
123 $this->
set(self::F_PREVIEW_IMAGE_SIZE, $this->
intToStr($image_size));
128 return $this->
strToInt($this->
get(self::F_PREVIEW_IMAGE_SIZE, (
string) self::V_IMAGE_SIZE_DEFAULT));
135 self::V_IMAGE_QUALITY_MIN,
136 self::V_IMAGE_QUALITY_MAX,
137 self::V_IMAGE_QUALITY_DEFAULT
139 $this->
set(self::F_PREVIEW_IMAGE_QUALITY, $this->
intToStr($quality));
144 return $this->
strToInt($this->
get(self::F_PREVIEW_IMAGE_QUALITY, (
string) self::V_IMAGE_QUALITY_DEFAULT));
150 if (is_numeric($value)) {
152 $value = (
int) $value;
155 } elseif ($value > $max) {
169 return $value ===
'1';
174 return $value ?
'1' :
'0';
179 return (
string) $int;
setImageSize(int $image_size)
const V_IMAGE_SIZE_DEFAULT
setPersisting(bool $a_value)
setPreviewEnabled(bool $a_value)
setImageQuality(int $quality)
const V_MAX_PREVIEWS_DEFAULT
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const F_PREVIEW_IMAGE_QUALITY
setMaximumPreviews(int $max_previews)
const F_MAX_PREVIEWS_PER_OBJECT
const F_PREVIEW_IMAGE_SIZE
const V_IMAGE_QUALITY_MIN
adjustNumeric(int $value, int $min, int $max, int $default)
__construct(Container $dic, ilPlugin $plugin)
const V_IMAGE_QUALITY_MAX
setTilePreviews(bool $a_value)
const F_PREVIEW_PERSISTING
const V_IMAGE_QUALITY_DEFAULT