ILIAS
trunk Revision v11.0_alpha-1753-gb21ca8c4367
◀ 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
DataHelperInterface.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Services\DataHelper
;
22
23
use
ILIAS\MetaData\Elements\Data\DataInterface
;
24
25
interface
DataHelperInterface
26
{
27
public
function
makePresentable
(
DataInterface
$data
): string;
28
29
public
function
makePresentableAsList
(
string
$separator,
DataInterface
...$data): string;
30
39
public
function
durationToArray
(
string
$duration
): array;
40
46
public
function
durationToSeconds
(
string
$duration):
int
;
47
54
public
function
datetimeToObject
(
string
$datetime
): \DateTimeImmutable;
55
60
public
function
durationFromIntegers
(
61
?
int
$years,
62
?
int
$months,
63
?
int
$days,
64
?
int
$hours,
65
?
int
$minutes,
66
?
int
$seconds
67
): string;
68
74
public
function
datetimeFromObject
(\
DateTimeImmutable
$object): string;
75
81
public
function
getAllLanguages
(): array;
82
}
ILIAS\MetaData\Services\DataHelper\DataHelperInterface\datetimeFromObject
datetimeFromObject(\DateTimeImmutable $object)
Translates datetime objects to strings in the LOM-internal datetime format.
$data
$data
Definition:
ltiregistration.php:29
DateTimeImmutable
ILIAS\MetaData\Services\DataHelper\DataHelperInterface
Definition:
DataHelperInterface.php:25
ILIAS\MetaData\Services\DataHelper\DataHelperInterface\durationToArray
durationToArray(string $duration)
Translates strings in the LOM-internal duration format to arrays consisting of in order years...
DataInterface
ILIAS\MetaData\Services\DataHelper\DataHelperInterface\getAllLanguages
getAllLanguages()
Returns all languages that can be selected in LOM in ILIAS.
ILIAS\MetaData\Services\DataHelper\DataHelperInterface\durationToSeconds
durationToSeconds(string $duration)
Translates strings in the LOM-internal duration format to seconds.
$datetime
$datetime
Definition:
LOMStructure.php:69
$duration
$duration
Definition:
LOMStructure.php:54
ILIAS\MetaData\Services\DataHelper\DataHelperInterface\makePresentableAsList
makePresentableAsList(string $separator, DataInterface ... $data)
ILIAS\MetaData\Elements\Data\DataInterface
Definition:
DataInterface.php:25
ILIAS\MetaData\Services\DataHelper
Definition:
DataHelper.php:21
ILIAS\MetaData\Services\DataHelper\DataHelperInterface\makePresentable
makePresentable(DataInterface $data)
ILIAS\MetaData\Services\DataHelper\DataHelperInterface\datetimeToObject
datetimeToObject(string $datetime)
Translates strings in the LOM-internal datetime format to datetime objects.
ILIAS\MetaData\Services\DataHelper\DataHelperInterface\durationFromIntegers
durationFromIntegers(?int $years, ?int $months, ?int $days, ?int $hours, ?int $minutes, ?int $seconds)
Get a string in the LOM-internal duration format as specified by the provided integers.
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
MetaData
classes
Services
DataHelper
DataHelperInterface.php
Generated on Thu Apr 10 2025 23:03:37 for ILIAS by
1.8.13 (using
Doxyfile
)