|
ILIAS
release_8 Revision v8.24
|
Collaboration diagram for ilPreviewSettings:Static Public Member Functions | |
| static | setPreviewEnabled (bool $a_value) |
| Sets whether the preview functionality is enabled. More... | |
| static | isPreviewEnabled () |
| Gets whether the preview functionality is enabled. More... | |
| static | setMaximumPreviews (int $a_value) |
| Sets the maximum number of preview pictures per object. More... | |
| static | getMaximumPreviews () |
| Gets the maximum number of preview pictures per object. More... | |
| static | setImageSize (int $a_value) |
| Sets the size of the preview images in pixels. More... | |
| static | getImageSize () |
| Gets the size of the preview images in pixels. More... | |
| static | setImageQuality (int $a_value) |
| Sets the quality (compression) of the preview images (1-100). More... | |
| static | getImageQuality () |
| Gets the quality (compression) of the preview images (1-100). More... | |
Data Fields | |
| const | MAX_PREVIEWS_DEFAULT = 5 |
| const | MAX_PREVIEWS_MIN = 1 |
| const | MAX_PREVIEWS_MAX = 20 |
Private Member Functions | |
| __construct () | |
| Private constructor. More... | |
Static Private Member Functions | |
| static | getInstance () |
| Gets the instance of the ilPreviewSettings. More... | |
| static | adjustNumeric ($value, int $min, int $max, int $default) |
Private Attributes | |
| const | IMAGE_SIZE_DEFAULT = 280 |
| const | IMAGE_SIZE_MIN = 50 |
| const | IMAGE_SIZE_MAX = 600 |
| const | IMAGE_QUALITY_DEFAULT = 85 |
| const | IMAGE_QUALITY_MIN = 20 |
| const | IMAGE_QUALITY_MAX = 100 |
| ilSetting | $settings = null |
| Settings object. More... | |
| bool | $preview_enabled = true |
| Indicates whether the preview functionality is enabled. More... | |
| int | $max_previews = self::MAX_PREVIEWS_DEFAULT |
| Defines the maximum number of previews pictures per object. More... | |
| int | $image_size = self::IMAGE_SIZE_DEFAULT |
| Defines the maximum width and height of the preview images. More... | |
| int | $image_quality = self::IMAGE_QUALITY_DEFAULT |
| Defines the quality (compression) of the preview images (1-100). More... | |
Static Private Attributes | |
| static ilPreviewSettings | $instance = null |
| The instance of the ilPreviewSettings. More... | |
Definition at line 27 of file class.ilPreviewSettings.php.
|
private |
Private constructor.
Definition at line 74 of file class.ilPreviewSettings.php.
References ILIAS\Repository\settings().
Here is the call graph for this function:
|
staticprivate |
Definition at line 181 of file class.ilPreviewSettings.php.
References ILIAS\Repository\int().
Referenced by setImageQuality(), setImageSize(), and setMaximumPreviews().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Gets the quality (compression) of the preview images (1-100).
Definition at line 164 of file class.ilPreviewSettings.php.
References getInstance().
Referenced by ilPreviewRenderer\getImageQuality().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Gets the size of the preview images in pixels.
Definition at line 142 of file class.ilPreviewSettings.php.
References getInstance().
Referenced by ilPreviewRenderer\getImageSize(), and ilPreviewGUI\initPreview().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Gets the instance of the ilPreviewSettings.
Definition at line 172 of file class.ilPreviewSettings.php.
References $instance.
Referenced by getImageQuality(), getImageSize(), getMaximumPreviews(), isPreviewEnabled(), setImageQuality(), setImageSize(), setMaximumPreviews(), and setPreviewEnabled().
Here is the caller graph for this function:
|
static |
Gets the maximum number of preview pictures per object.
Definition at line 120 of file class.ilPreviewSettings.php.
References getInstance().
Referenced by ilPreviewRenderer\getMaximumNumberOfPreviews(), and ilObjFileAccessSettingsGUI\initSettingsForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Gets whether the preview functionality is enabled.
Definition at line 98 of file class.ilPreviewSettings.php.
References getInstance().
Referenced by ilPreview\copyPreviews(), ilPreview\create(), ilPreview\hasPreview(), and ilObjFileAccessSettingsGUI\initSettingsForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Sets the quality (compression) of the preview images (1-100).
| int | $a_value | The new value |
Definition at line 152 of file class.ilPreviewSettings.php.
References $instance, adjustNumeric(), and getInstance().
Here is the call graph for this function:
|
static |
Sets the size of the preview images in pixels.
| int | $a_value | The new value |
Definition at line 130 of file class.ilPreviewSettings.php.
References $instance, adjustNumeric(), and getInstance().
Here is the call graph for this function:
|
static |
Sets the maximum number of preview pictures per object.
| int | $a_value | The new value |
Definition at line 108 of file class.ilPreviewSettings.php.
References $instance, adjustNumeric(), and getInstance().
Referenced by ilObjFileAccessSettingsGUI\saveSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Sets whether the preview functionality is enabled.
| bool | $a_value | The new value |
Definition at line 86 of file class.ilPreviewSettings.php.
References $instance, and getInstance().
Referenced by ilObjFileAccessSettingsGUI\saveSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Defines the quality (compression) of the preview images (1-100).
Definition at line 69 of file class.ilPreviewSettings.php.
|
private |
Defines the maximum width and height of the preview images.
Definition at line 64 of file class.ilPreviewSettings.php.
|
staticprivate |
The instance of the ilPreviewSettings.
Definition at line 44 of file class.ilPreviewSettings.php.
Referenced by getInstance(), setImageQuality(), setImageSize(), setMaximumPreviews(), and setPreviewEnabled().
|
private |
Defines the maximum number of previews pictures per object.
Definition at line 59 of file class.ilPreviewSettings.php.
|
private |
Indicates whether the preview functionality is enabled.
Definition at line 54 of file class.ilPreviewSettings.php.
|
private |
Settings object.
Definition at line 49 of file class.ilPreviewSettings.php.
|
private |
Definition at line 37 of file class.ilPreviewSettings.php.
|
private |
Definition at line 39 of file class.ilPreviewSettings.php.
|
private |
Definition at line 38 of file class.ilPreviewSettings.php.
|
private |
Definition at line 33 of file class.ilPreviewSettings.php.
|
private |
Definition at line 35 of file class.ilPreviewSettings.php.
|
private |
Definition at line 34 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::MAX_PREVIEWS_DEFAULT = 5 |
Definition at line 29 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::MAX_PREVIEWS_MAX = 20 |
Definition at line 31 of file class.ilPreviewSettings.php.
Referenced by ilObjFileAccessSettingsGUI\initSettingsForm().
| const ilPreviewSettings::MAX_PREVIEWS_MIN = 1 |
Definition at line 30 of file class.ilPreviewSettings.php.