90 $this->
set(self::F_PREVIEW_PERSISTING, $this->
boolToStr($a_value));
95 return $this->
strToBool($this->
get(self::F_PREVIEW_PERSISTING,
'1'));
100 $this->
set(self::F_TILE_PREVIEWS, $this->
boolToStr($a_value));
105 return $this->
strToBool($this->
get(self::F_TILE_PREVIEWS,
'1'));
110 return $this->imagick->isRunning();
115 $this->
set(self::F_PREVIEW_ENABLED, $this->
boolToStr($a_value));
123 return $this->
strToBool($this->
get(self::F_PREVIEW_ENABLED,
'1'));
130 self::V_MAX_PREVIEWS_MIN,
131 self::V_MAX_PREVIEWS_MAX,
132 self::V_MAX_PREVIEWS_DEFAULT
134 $this->
set(self::F_MAX_PREVIEWS_PER_OBJECT, $this->
intToStr($max_previews));
139 return $this->
strToInt($this->
get(self::F_MAX_PREVIEWS_PER_OBJECT, (
string) self::V_MAX_PREVIEWS_DEFAULT));
146 self::V_IMAGE_SIZE_MIN,
147 self::V_IMAGE_SIZE_MAX,
148 self::V_IMAGE_SIZE_DEFAULT
150 $this->
set(self::F_PREVIEW_IMAGE_SIZE, $this->
intToStr($image_size));
155 return $this->
strToInt($this->
get(self::F_PREVIEW_IMAGE_SIZE, (
string) self::V_IMAGE_SIZE_DEFAULT));
162 self::V_IMAGE_QUALITY_MIN,
163 self::V_IMAGE_QUALITY_MAX,
164 self::V_IMAGE_QUALITY_DEFAULT
166 $this->
set(self::F_PREVIEW_IMAGE_QUALITY, $this->
intToStr($quality));
171 return $this->
strToInt($this->
get(self::F_PREVIEW_IMAGE_QUALITY, (
string) self::V_IMAGE_QUALITY_DEFAULT));
177 if (is_numeric($value)) {
179 $value = (
int) $value;
182 } elseif ($value > $max) {
196 return $value ===
'1';
201 return $value ?
'1' :
'0';
206 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