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.ilUserProfilePictureDefinition.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition
;
22
26
class
ilUserProfilePictureDefinition
implements
FlavourDefinition
27
{
28
private
const
ID
=
'90ffcb9513daf30de2f5b5de82d7edee162f5dbc9fd16713810cf75326849dc2'
;
29
30
private
int
$quality
= 50;
31
32
private
array
$sizes
= [
33
'big'
=> 512,
34
'small'
=> 100,
35
'xsmall'
=> 75,
36
'xxsmall'
=> 30
37
];
38
39
public
function
__construct
(
40
) {
41
}
42
43
public
function
getId
(): string
44
{
45
return
self::ID;
46
}
47
48
public
function
getFlavourMachineId
(): string
49
{
50
return
ilUserProfilePictureMachine::ID
;
51
}
52
53
public
function
getInternalName
(): string
54
{
55
return
'profile_picture'
;
56
}
57
58
public
function
getVariantName
(): ?string
59
{
60
return
json_encode([
61
'quality'
=> $this->quality,
62
'sizes'
=> $this->sizes
63
]);
64
}
65
66
public
function
persist
(): bool
67
{
68
return
true
;
69
}
70
71
public
function
getSizes
(): array
72
{
73
return
$this->sizes
;
74
}
75
76
public
function
getQuality
():
int
77
{
78
return
$this->quality
;
79
}
80
}
ilUserProfilePictureDefinition\getId
getId()
Definition:
class.ilUserProfilePictureDefinition.php:43
ilUserProfilePictureDefinition\getSizes
getSizes()
Definition:
class.ilUserProfilePictureDefinition.php:71
ilUserProfilePictureDefinition\ID
const ID
Definition:
class.ilUserProfilePictureDefinition.php:28
ilUserProfilePictureDefinition\$quality
int $quality
Definition:
class.ilUserProfilePictureDefinition.php:30
ilUserProfilePictureMachine\ID
const ID
Definition:
class.ilUserProfilePictureMachine.php:40
FlavourDefinition
ilUserProfilePictureDefinition\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.ilUserProfilePictureDefinition.php:66
ilUserProfilePictureDefinition\getInternalName
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it...
Definition:
class.ilUserProfilePictureDefinition.php:53
ilUserProfilePictureDefinition\getVariantName
getVariantName()
If a definition can be used in several variants (e.g.
Definition:
class.ilUserProfilePictureDefinition.php:58
ilUserProfilePictureDefinition\__construct
array __construct()
Definition:
class.ilUserProfilePictureDefinition.php:39
ilUserProfilePictureDefinition
Definition:
class.ilUserProfilePictureDefinition.php:26
ilUserProfilePictureDefinition\getFlavourMachineId
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
Definition:
class.ilUserProfilePictureDefinition.php:48
ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition
Definition:
FlavourDefinition.php:25
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilUserProfilePictureDefinition\getQuality
getQuality()
Definition:
class.ilUserProfilePictureDefinition.php:76
ilUserProfilePictureDefinition\$sizes
array $sizes
Definition:
class.ilUserProfilePictureDefinition.php:32
components
ILIAS
User
classes
Avatar
Flavours
class.ilUserProfilePictureDefinition.php
Generated on Wed Apr 2 2025 23:04:06 for ILIAS by
1.8.13 (using
Doxyfile
)