ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilADTLocationDBBridge.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
class
ilADTLocationDBBridge
extends
ilADTDBBridge
22
{
23
protected
function
isValidADT
(
ilADT
$a_adt): bool
24
{
25
return
($a_adt instanceof
ilADTLocation
);
26
}
27
28
public
function
readRecord
(array $a_row): void
29
{
30
$this->
getADT
()->setLongitude((
float
) $a_row[$this->
getElementId
() .
"_long"
]);
31
$this->
getADT
()->setLatitude((
float
) $a_row[$this->
getElementId
() .
"_lat"
]);
32
$this->
getADT
()->setZoom($a_row[$this->
getElementId
() .
"_zoom"
]);
33
}
34
35
public
function
prepareInsert
(array &$a_fields): void
36
{
37
$a_fields[$this->
getElementId
() .
"_long"
] = array(
"float"
, $this->
getADT
()->getLongitude());
38
$a_fields[$this->
getElementId
() .
"_lat"
] = array(
"float"
, $this->
getADT
()->getLatitude());
39
$a_fields[$this->
getElementId
() .
"_zoom"
] = array(
"integer"
, $this->
getADT
()->getZoom());
40
}
41
42
public
function
supportsDefaultValueColumn
(): bool
43
{
44
return
false
;
45
}
46
}
ilADTLocation
Definition:
class.ilADTLocation.php:21
ilADTLocationDBBridge\prepareInsert
prepareInsert(array &$a_fields)
Definition:
class.ilADTLocationDBBridge.php:35
ilADTLocationDBBridge\readRecord
readRecord(array $a_row)
Definition:
class.ilADTLocationDBBridge.php:28
ilADTLocationDBBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTLocationDBBridge.php:23
ilADTDBBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTDBBridge.php:84
ilADT
ADT base class.
Definition:
class.ilADT.php:25
ilADTDBBridge
ADT DB bridge base class.
Definition:
class.ilADTDBBridge.php:25
ilADTLocationDBBridge
Definition:
class.ilADTLocationDBBridge.php:21
ilADTLocationDBBridge\supportsDefaultValueColumn
supportsDefaultValueColumn()
Definition:
class.ilADTLocationDBBridge.php:42
ilADTDBBridge\getADT
getADT()
Definition:
class.ilADTDBBridge.php:56
components
ILIAS
ADT
classes
Types
Location
class.ilADTLocationDBBridge.php
Generated on Sun Aug 31 2025 23:01:49 for ILIAS by
1.8.13 (using
Doxyfile
)