ILIAS
Release_5_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
$ilDB
;
15
16
$elements = array();
17
18
while
(
$row
= $ilDB->fetchAssoc($a_set))
19
{
20
$elements[] =
$row
[$this->
getElementId
()];
21
}
22
23
$this->
getADT
()->setTextElements($elements);
24
}
25
26
protected
function
prepareMultiInsert
()
27
{
28
$res
= array();
29
30
foreach
((array)$this->
getADT
()->getTextElements() as $element)
31
{
32
$res
[] = array($this->
getElementId
() => array(
"text"
, $element));
33
}
34
35
return
$res
;
36
}
37
}
38
39
?>
Services
ADT
classes
Types
MultiText
class.ilADTMultiTextDBBridge.php
Generated on Wed Apr 27 2016 21:01:28 for ILIAS by
1.8.1.2 (using
Doxyfile
)