ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilADTMultiTextDBBridge.php
Go to the documentation of this file.
1
<?
php
2
3
require_once
"Services/ADT/classes/Bridges/class.ilADTMultiDBBridge.php"
;
4
5
class
ilADTMultiTextDBBridge
extends
ilADTMultiDBBridge
6
{
7
protected
function
isValidADT
(
ilADT
$a_adt)
8
{
9
return
($a_adt instanceof
ilADTMultiText
);
10
}
11
12
protected
function
readMultiRecord
($a_set)
13
{
14
global
$DIC
;
15
16
$ilDB
= $DIC[
'ilDB'
];
17
18
$elements = array();
19
20
while
(
$row
=
$ilDB
->fetchAssoc($a_set)) {
21
$elements[] =
$row
[$this->
getElementId
()];
22
}
23
24
$this->
getADT
()->setTextElements($elements);
25
}
26
27
protected
function
prepareMultiInsert
()
28
{
29
$res
= array();
30
31
foreach
((array) $this->
getADT
()->getTextElements() as $element) {
32
$res
[] = array($this->
getElementId
() => array(
"text"
, $element));
33
}
34
35
return
$res
;
36
}
37
}
$DIC
global $DIC
Definition:
saml.php:7
ilADTMultiTextDBBridge\prepareMultiInsert
prepareMultiInsert()
Definition:
class.ilADTMultiTextDBBridge.php:27
ilADTDBBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTDBBridge.php:103
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTMultiText
Definition:
class.ilADTMultiText.php:3
$res
foreach($_POST as $key=> $value) $res
Definition:
save_question_post_data.php:15
ilADTMultiDBBridge
Definition:
class.ilADTMultiDBBridge.php:5
ilADTMultiTextDBBridge\readMultiRecord
readMultiRecord($a_set)
Definition:
class.ilADTMultiTextDBBridge.php:12
$row
$row
Definition:
migrateto20.php:360
$ilDB
global $ilDB
Definition:
storeScorm2004.php:16
php
ilADTDBBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTDBBridge.php:63
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 Thu Jan 16 2025 19:02:16 for ILIAS by
1.8.13 (using
Doxyfile
)