|
ILIAS
Release_5_0_x_branch Revision 61816
|
Collaboration diagram for ilPreviewSettings:Static Public Member Functions | |
| static | setPreviewEnabled ($a_value) |
| Sets whether the preview functionality is enabled. | |
| static | isPreviewEnabled () |
| Gets whether the preview functionality is enabled. | |
| static | setMaximumPreviews ($a_value) |
| Sets the maximum number of preview pictures per object. | |
| static | getMaximumPreviews () |
| Gets the maximum number of preview pictures per object. | |
| static | setImageSize ($a_value) |
| Sets the size of the preview images in pixels. | |
| static | getImageSize () |
| Gets the size of the preview images in pixels. | |
| static | setImageQuality ($a_value) |
| Sets the quality (compression) of the preview images (1-100). | |
| static | getImageQuality () |
| Gets the quality (compression) of the preview images (1-100). | |
Data Fields | |
| const | MAX_PREVIEWS_DEFAULT = 5 |
| const | MAX_PREVIEWS_MIN = 1 |
| const | MAX_PREVIEWS_MAX = 20 |
| 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 |
Private Member Functions | |
| __construct () | |
| Private constructor. | |
Static Private Member Functions | |
| static | getInstance () |
| Gets the instance of the ilPreviewSettings. | |
| static | adjustNumeric ($value, $min, $max, $default) |
| Adjusts the numeric value to fit between the specified minimum and maximum. | |
Private Attributes | |
| $settings = null | |
| $preview_enabled = true | |
| $max_previews = self::MAX_PREVIEWS_DEFAULT | |
| $image_size = self::IMAGE_SIZE_DEFAULT | |
| $image_quality = self::IMAGE_QUALITY_DEFAULT | |
Static Private Attributes | |
| static | $instance = null |
Definition at line 13 of file class.ilPreviewSettings.php.
|
private |
Private constructor.
Definition at line 66 of file class.ilPreviewSettings.php.
|
staticprivate |
Adjusts the numeric value to fit between the specified minimum and maximum.
If the value is not numeric the default value is returned.
| object | $value | The value to adjust. |
| int | $min | The allowed minimum (inclusive). |
| int | $max | The allowed maximum (inclusive). |
| int | $default | The default value if the specified value is not numeric. |
Definition at line 183 of file class.ilPreviewSettings.php.
Referenced by setImageQuality(), setImageSize(), and setMaximumPreviews().
Here is the caller graph for this function:
|
static |
Gets the quality (compression) of the preview images (1-100).
Definition at line 156 of file class.ilPreviewSettings.php.
References getInstance().
Here is the call graph for this function:
|
static |
Gets the size of the preview images in pixels.
Definition at line 134 of file class.ilPreviewSettings.php.
References getInstance().
Referenced by 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 165 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 112 of file class.ilPreviewSettings.php.
References getInstance().
Referenced by ilObjFileAccessSettingsGUI\editPreviewSettings(), ilPreviewRenderer\getMaximumNumberOfPreviews(), and ilObjFileAccessSettingsGUI\initPreviewSettingsForm().
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 90 of file class.ilPreviewSettings.php.
References getInstance().
Referenced by ilPreview\copyPreviews(), ilPreview\create(), ilObjFileAccessSettingsGUI\editPreviewSettings(), ilPreview\hasPreview(), and ilObjFileAccessSettingsGUI\initPreviewSettingsForm().
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 144 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 122 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 100 of file class.ilPreviewSettings.php.
References $instance, adjustNumeric(), and getInstance().
Referenced by ilObjFileAccessSettingsGUI\savePreviewSettings().
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 78 of file class.ilPreviewSettings.php.
References $instance, and getInstance().
Referenced by ilObjFileAccessSettingsGUI\savePreviewSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 61 of file class.ilPreviewSettings.php.
|
private |
Definition at line 55 of file class.ilPreviewSettings.php.
|
staticprivate |
Definition at line 31 of file class.ilPreviewSettings.php.
Referenced by getInstance(), setImageQuality(), setImageSize(), setMaximumPreviews(), and setPreviewEnabled().
|
private |
Definition at line 49 of file class.ilPreviewSettings.php.
|
private |
Definition at line 43 of file class.ilPreviewSettings.php.
|
private |
Definition at line 37 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::IMAGE_QUALITY_DEFAULT = 85 |
Definition at line 23 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::IMAGE_QUALITY_MAX = 100 |
Definition at line 25 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::IMAGE_QUALITY_MIN = 20 |
Definition at line 24 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::IMAGE_SIZE_DEFAULT = 280 |
Definition at line 19 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::IMAGE_SIZE_MAX = 600 |
Definition at line 21 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::IMAGE_SIZE_MIN = 50 |
Definition at line 20 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::MAX_PREVIEWS_DEFAULT = 5 |
Definition at line 15 of file class.ilPreviewSettings.php.
| const ilPreviewSettings::MAX_PREVIEWS_MAX = 20 |
Definition at line 17 of file class.ilPreviewSettings.php.
Referenced by ilObjFileAccessSettingsGUI\initPreviewSettingsForm().
| const ilPreviewSettings::MAX_PREVIEWS_MIN = 1 |
Definition at line 16 of file class.ilPreviewSettings.php.