|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ilBadgePictureDefinition:
Collaboration diagram for ilBadgePictureDefinition:Public Member Functions | |
| array | getId () |
| getFlavourMachineId () | |
| Defines the ID of the machine that supports this definition. More... | |
| getInternalName () | |
| This defines the speaky internal name of the definition, as the consumer would like to use it, e.g. More... | |
| getVariantName () | |
| If a definition can be used in several variants (e.g. More... | |
| persist () | |
| Define whether the generated flavor and the respective streams should be persisted, or whether they should only be generated and used in-memory. More... | |
| getQuality () | |
| getWidths () | |
Private Attributes | |
| const | ID = 'badge_image_resize_flavor' |
| int | $quality = 50 |
| array | $widths |
Definition at line 23 of file class.ilBadgePictureDefinition.php.
| ilBadgePictureDefinition::getFlavourMachineId | ( | ) |
Defines the ID of the machine that supports this definition.
The machine MUST exist.
Implements ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition.
Definition at line 42 of file class.ilBadgePictureDefinition.php.
References ilBadgePictureMachine\ID.
| array ilBadgePictureDefinition::getId | ( | ) |
If you ever change the ID, existing - maybe persisted - flavours created based on this definition will not be found anymore and have to be regenerated.
Implements ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition.
Definition at line 37 of file class.ilBadgePictureDefinition.php.
| ilBadgePictureDefinition::getInternalName | ( | ) |
This defines the speaky internal name of the definition, as the consumer would like to use it, e.g.
to be able to distinguish between several flavors.
Implements ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition.
Definition at line 47 of file class.ilBadgePictureDefinition.php.
| ilBadgePictureDefinition::getQuality | ( | ) |
| ilBadgePictureDefinition::getVariantName | ( | ) |
If a definition can be used in several variants (e.g.
configurable size of a thumbnail), such variants must be distinguishable. For example, a variant name may contain "{height}x{width}" if these are configurable values.
The Variant-Name MUST be less than 768 characters long!
Implements ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition.
Definition at line 52 of file class.ilBadgePictureDefinition.php.
| ilBadgePictureDefinition::getWidths | ( | ) |
Definition at line 73 of file class.ilBadgePictureDefinition.php.
References $widths.
| ilBadgePictureDefinition::persist | ( | ) |
Define whether the generated flavor and the respective streams should be persisted, or whether they should only be generated and used in-memory.
Implements ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition.
Definition at line 60 of file class.ilBadgePictureDefinition.php.
|
private |
Definition at line 27 of file class.ilBadgePictureDefinition.php.
Referenced by getQuality().
|
private |
Definition at line 29 of file class.ilBadgePictureDefinition.php.
Referenced by getWidths().
|
private |
Definition at line 25 of file class.ilBadgePictureDefinition.php.