ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilObjectTileImageFlavourDefinition.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Object\Properties\CoreProperties\TileImage
;
22
23
use
ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition
;
24
25
class
ilObjectTileImageFlavourDefinition
implements
FlavourDefinition
26
{
27
private
const
ID
=
'5ae5cfe34279f9edfade75fdec92ad55757dfe4fc99722a32dc53cc3d7c72fe4'
;
28
29
private
int
$quality
= 70;
30
31
private
array
$widths
= [
32
'xl'
=> 1920,
33
'l'
=> 960,
34
'm'
=> 480,
35
's'
=> 240,
36
'xs'
=> 120
37
];
38
39
private
float
$ratio
= 3 / 2;
40
41
public
function
__construct
(
42
) {
43
}
44
45
public
function
getId
(): string
46
{
47
return
self::ID;
48
}
49
50
public
function
getFlavourMachineId
(): string
51
{
52
return
ilObjectTileImageFlavourMachine::ID
;
53
}
54
55
public
function
getInternalName
(): string
56
{
57
return
'object_tile_image'
;
58
}
59
60
public
function
getVariantName
(): ?string
61
{
62
return
json_encode([
63
'width'
=> $this->widths,
64
'ratio'
=> $this->ratio,
65
'quality'
=> $this->quality
66
]);
67
}
68
69
public
function
persist
(): bool
70
{
71
return
true
;
72
}
73
74
public
function
getWidths
(): array
75
{
76
return
$this->widths
;
77
}
78
79
public
function
getRatio
(): float
80
{
81
return
$this->ratio
;
82
}
83
84
public
function
getQuality
():
int
85
{
86
return
$this->quality
;
87
}
88
}
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\$quality
int $quality
Definition:
class.ilObjectTileImageFlavourDefinition.php:29
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\__construct
__construct()
Definition:
class.ilObjectTileImageFlavourDefinition.php:41
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\getId
getId()
Definition:
class.ilObjectTileImageFlavourDefinition.php:45
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\getQuality
getQuality()
Definition:
class.ilObjectTileImageFlavourDefinition.php:84
ILIAS\Object\Properties\CoreProperties\TileImage
Definition:
class.ilObjectTileImage.php:21
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\getWidths
getWidths()
Definition:
class.ilObjectTileImageFlavourDefinition.php:74
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\ID
const ID
Definition:
class.ilObjectTileImageFlavourDefinition.php:27
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourMachine\ID
const ID
Definition:
class.ilObjectTileImageFlavourMachine.php:36
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition
Definition:
class.ilObjectTileImageFlavourDefinition.php:25
FlavourDefinition
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\getInternalName
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it...
Definition:
class.ilObjectTileImageFlavourDefinition.php:55
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\getRatio
getRatio()
Definition:
class.ilObjectTileImageFlavourDefinition.php:79
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\getFlavourMachineId
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
Definition:
class.ilObjectTileImageFlavourDefinition.php:50
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\persist
persist()
Define whether the generated flavor and the respective streams should be persisted, or whether they should only be generated and used in-memory.
Definition:
class.ilObjectTileImageFlavourDefinition.php:69
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\$widths
array $widths
Definition:
class.ilObjectTileImageFlavourDefinition.php:31
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\getVariantName
getVariantName()
If a definition can be used in several variants (e.g.
Definition:
class.ilObjectTileImageFlavourDefinition.php:60
ILIAS\Object\Properties\CoreProperties\TileImage\ilObjectTileImageFlavourDefinition\$ratio
array float $ratio
Definition:
class.ilObjectTileImageFlavourDefinition.php:39
ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition
Definition:
FlavourDefinition.php:25
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
ILIASObject
classes
Properties
CoreProperties
TileImage
class.ilObjectTileImageFlavourDefinition.php
Generated on Wed Apr 2 2025 23:03:01 for ILIAS by
1.8.13 (using
Doxyfile
)