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.ilCmiXapiDateDurationInputGUI.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
30
class
ilCmiXapiDateDurationInputGUI
extends
ilDateDurationInputGUI
31
{
32
public
function
getValue
(): array
33
{
34
$duration
= array();
35
36
if
($this->
getStart
() instanceof
ilDateTime
) {
37
$duration
[
'start'
] = $this->
getStart
()->get(
IL_CAL_UNIX
);
38
}
39
40
if
($this->
getEnd
() instanceof ilDateTime) {
41
$duration
[
'end'
] = $this->
getEnd
()->get(
IL_CAL_UNIX
);
42
}
43
44
return
$duration
;
45
}
46
50
public
function
getStartXapiDateTime
(): ?
ilCmiXapiDateTime
51
{
52
$xapiDateTime =
null
;
53
if
($this->
getStart
() instanceof
ilDateTime
) {
54
try
{
55
$xapiDateTime =
ilCmiXapiDateTime::fromIliasDateTime
($this->
getStart
());
56
}
catch
(
ilDateTimeException
$e
) {
57
return
null
;
58
}
59
}
60
return
$xapiDateTime;
61
}
62
66
public
function
getEndXapiDateTime
(): ?
ilCmiXapiDateTime
67
{
68
$xapiDateTime =
null
;
69
if
($this->
getEnd
() instanceof
ilDateTime
) {
70
try
{
71
$xapiDateTime =
ilCmiXapiDateTime::fromIliasDateTime
($this->
getEnd
());
72
}
catch
(
ilDateTimeException
$e
) {
73
return
null
;
74
}
75
}
76
return
$xapiDateTime;
77
}
78
}
ilDateDurationInputGUI
ilDateTime
ilCmiXapiDateTime
Definition:
class.ilCmiXapiDateTime.php:30
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
IL_CAL_UNIX
const IL_CAL_UNIX
Definition:
class.ilDateTime.php:23
$duration
$duration
Definition:
LOMStructure.php:54
ilCmiXapiDateDurationInputGUI\getStartXapiDateTime
getStartXapiDateTime()
Definition:
class.ilCmiXapiDateDurationInputGUI.php:50
ilDateDurationInputGUI\getEnd
getEnd()
Definition:
class.ilDateDurationInputGUI.php:124
ilCmiXapiDateDurationInputGUI\getEndXapiDateTime
getEndXapiDateTime()
Definition:
class.ilCmiXapiDateDurationInputGUI.php:66
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ilCmiXapiDateDurationInputGUI
Definition:
class.ilCmiXapiDateDurationInputGUI.php:30
ilDateDurationInputGUI\getStart
getStart()
Definition:
class.ilDateDurationInputGUI.php:105
ilCmiXapiDateTime\fromIliasDateTime
static fromIliasDateTime(ilDateTime $dateTime)
Definition:
class.ilCmiXapiDateTime.php:64
ilCmiXapiDateDurationInputGUI\getValue
getValue()
Definition:
class.ilCmiXapiDateDurationInputGUI.php:32
ilDateTimeException
components
ILIAS
CmiXapi
classes
Form
class.ilCmiXapiDateDurationInputGUI.php
Generated on Wed Apr 2 2025 23:02:27 for ILIAS by
1.8.13 (using
Doxyfile
)