ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilADTEnumDBBridge.php
Go to the documentation of this file.
1
<?php
2
3
require_once
"Services/ADT/classes/Bridges/class.ilADTDBBridge.php"
;
4
5
class
ilADTEnumDBBridge
extends
ilADTDBBridge
6
{
7
protected
function
isValidADT
(
ilADT
$a_adt)
8
{
9
return
($a_adt instanceof
ilADTEnum
);
10
}
11
12
// CRUD
13
14
public
function
readRecord
(
array
$a_row)
15
{
16
$this->
getADT
()->setSelection($a_row[$this->
getElementId
()]);
17
}
18
19
public
function
prepareInsert
(
array
&$a_fields)
20
{
21
$type
= ($this->
getADT
() instanceof
ilADTEnumNumeric
)
22
?
"integer"
23
:
"text"
;
24
$a_fields[$this->
getElementId
()] =
array
(
$type
, $this->
getADT
()->getSelection());
25
}
26
}
$type
$type
Definition:
proxy_ylocal.php:10
ilADTEnumNumeric
Definition:
class.ilADTEnumNumeric.php:3
ilADTDBBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTDBBridge.php:103
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTDBBridge
ADT DB bridge base class.
Definition:
class.ilADTDBBridge.php:11
ilADTEnumDBBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTEnumDBBridge.php:7
ilADTEnum
Definition:
class.ilADTEnum.php:3
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilADTEnumDBBridge
Definition:
class.ilADTEnumDBBridge.php:5
ilADTEnumDBBridge\readRecord
readRecord(array $a_row)
Definition:
class.ilADTEnumDBBridge.php:14
ilADTEnumDBBridge\prepareInsert
prepareInsert(array &$a_fields)
Definition:
class.ilADTEnumDBBridge.php:19
ilADTDBBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTDBBridge.php:63
Services
ADT
classes
Types
Enum
class.ilADTEnumDBBridge.php
Generated on Sat Jan 18 2025 19:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)