ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilADTLocationDBBridge.php
Go to the documentation of this file.
1
<?
php
2
3
require_once
"Services/ADT/classes/Bridges/class.ilADTDBBridge.php"
;
4
5
class
ilADTLocationDBBridge
extends
ilADTDBBridge
6
{
7
protected
function
isValidADT
(
ilADT
$a_adt)
8
{
9
return
($a_adt instanceof
ilADTLocation
);
10
}
11
12
13
// CRUD
14
15
public
function
readRecord
(
array
$a_row)
16
{
17
$this->
getADT
()->setLongitude($a_row[$this->
getElementId
().
"_long"
]);
18
$this->
getADT
()->setLatitude($a_row[$this->
getElementId
().
"_lat"
]);
19
$this->
getADT
()->setZoom($a_row[$this->
getElementId
().
"_zoom"
]);
20
}
21
22
public
function
prepareInsert
(
array
&$a_fields)
23
{
24
$a_fields[$this->
getElementId
().
"_long"
] =
array
(
"float"
, $this->
getADT
()->getLongitude());
25
$a_fields[$this->
getElementId
().
"_lat"
] =
array
(
"float"
, $this->
getADT
()->getLatitude());
26
$a_fields[$this->
getElementId
().
"_zoom"
] =
array
(
"integer"
, $this->
getADT
()->getZoom());
27
}
28
}
29
30
?>
ilADTLocation
Definition:
class.ilADTLocation.php:3
ilADTLocationDBBridge\prepareInsert
prepareInsert(array &$a_fields)
Definition:
class.ilADTLocationDBBridge.php:22
ilADTLocationDBBridge\readRecord
readRecord(array $a_row)
Definition:
class.ilADTLocationDBBridge.php:15
ilADTLocationDBBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTLocationDBBridge.php:7
ilADTDBBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTDBBridge.php:104
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTDBBridge
ADT DB bridge base class.
Definition:
class.ilADTDBBridge.php:11
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilADTLocationDBBridge
Definition:
class.ilADTLocationDBBridge.php:5
php
ilADTDBBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTDBBridge.php:64
Services
ADT
classes
Types
Location
class.ilADTLocationDBBridge.php
Generated on Fri Jan 17 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)