ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilDclDefaultValueFactory.php
Go to the documentation of this file.
1
<?php
2
19
class
ilDclDefaultValueFactory
20
{
21
public
const
STORAGE_LOCATION_MAPPING
= [
22
1 => ilDclTableViewTextDefaultValue::class,
23
2 => ilDclTableViewNumberDefaultValue::class,
24
3 => ilDclTableViewDateDefaultValue::class
25
];
26
27
public
function
create
(
int
$data_type_id):
ilDclTableViewBaseDefaultValue
28
{
29
$storage_location =
ilDclCache::getDatatype
($data_type_id)->getStorageLocation();
30
$class = self::STORAGE_LOCATION_MAPPING[$storage_location];
31
return
new
$class();
32
}
33
34
public
function
createByTableName
(
string
$table_name):
ilDclTableViewBaseDefaultValue
35
{
36
switch
($table_name) {
37
case
ilDclTableViewTextDefaultValue::returnDbTableName
():
38
return
new
ilDclTableViewTextDefaultValue
();
39
case
ilDclTableViewNumberDefaultValue::returnDbTableName
():
40
return
new
ilDclTableViewNumberDefaultValue
();
41
case
ilDclTableViewDateDefaultValue::returnDbTableName
():
42
default
:
43
return
new
ilDclTableViewDateDefaultValue
();
44
}
45
}
46
}
ilDclTableViewTextDefaultValue
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilDclTableViewTextDefaultValue.php:19
ilDclDefaultValueFactory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilDclDefaultValueFactory.php:19
ilDclTableViewNumberDefaultValue\returnDbTableName
static returnDbTableName()
Definition:
class.ilDclTableViewNumberDefaultValue.php:52
ilDclTableViewBaseDefaultValue
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilDclTableViewBaseDefaultValue.php:19
ilDclTableViewTextDefaultValue\returnDbTableName
static returnDbTableName()
Definition:
class.ilDclTableViewTextDefaultValue.php:52
ilDclCache\getDatatype
static getDatatype(int $datatyp_id)
Get cached datatypes.
Definition:
class.ilDclCache.php:257
ilDclDefaultValueFactory\STORAGE_LOCATION_MAPPING
const STORAGE_LOCATION_MAPPING
Definition:
class.ilDclDefaultValueFactory.php:21
ilDclDefaultValueFactory\create
const create(int $data_type_id)
Definition:
class.ilDclDefaultValueFactory.php:27
ilDclTableViewDateDefaultValue
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilDclTableViewDateDefaultValue.php:19
ilDclTableViewNumberDefaultValue
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilDclTableViewNumberDefaultValue.php:19
ilDclDefaultValueFactory\createByTableName
createByTableName(string $table_name)
Definition:
class.ilDclDefaultValueFactory.php:34
ilDclTableViewDateDefaultValue\returnDbTableName
static returnDbTableName()
Definition:
class.ilDclTableViewDateDefaultValue.php:52
Modules
DataCollection
classes
TableView
class.ilDclDefaultValueFactory.php
Generated on Tue Apr 1 2025 22:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)