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.ilADTMultiTextDBBridge.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
class
ilADTMultiTextDBBridge
extends
ilADTMultiDBBridge
6
{
7
protected
function
isValidADT
(
ilADT
$a_adt): bool
8
{
9
return
($a_adt instanceof
ilADTMultiText
);
10
}
11
12
protected
function
readMultiRecord
(
ilDBStatement
$a_set): void
13
{
14
$elements = array();
15
16
while
($row = $this->db->fetchAssoc($a_set)) {
17
$elements[] = $row[$this->
getElementId
()];
18
}
19
20
$this->
getADT
()->setTextElements($elements);
21
}
22
23
protected
function
prepareMultiInsert
(): array
24
{
25
$res
= [];
26
foreach
((array) $this->
getADT
()->getTextElements() as $element) {
27
$res
[] = array($this->
getElementId
() => array(
"text"
, $element));
28
}
29
30
return
$res
;
31
}
32
}
$res
$res
Definition:
ltiservices.php:69
ilADTMultiTextDBBridge\prepareMultiInsert
prepareMultiInsert()
Definition:
class.ilADTMultiTextDBBridge.php:23
ilADTDBBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTDBBridge.php:70
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTMultiText
Definition:
class.ilADTMultiText.php:5
ilADTMultiDBBridge
Definition:
class.ilADTMultiDBBridge.php:5
ilDBStatement
ilADTMultiTextDBBridge\readMultiRecord
readMultiRecord(ilDBStatement $a_set)
Definition:
class.ilADTMultiTextDBBridge.php:12
ilADTDBBridge\getADT
getADT()
Definition:
class.ilADTDBBridge.php:42
ilADTMultiTextDBBridge
Definition:
class.ilADTMultiTextDBBridge.php:5
ilADTMultiTextDBBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTMultiTextDBBridge.php:7
Services
ADT
classes
Types
MultiText
class.ilADTMultiTextDBBridge.php
Generated on Fri Apr 4 2025 22:02:08 for ILIAS by
1.8.13 (using
Doxyfile
)