ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilAdvancedMDFieldDefinitionLocation.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once
"Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php"
;
5
14
class
ilAdvancedMDFieldDefinitionLocation
extends
ilAdvancedMDFieldDefinition
15
{
16
//
17
// generic types
18
//
19
20
public
function
getType
()
21
{
22
return
self::TYPE_LOCATION;
23
}
24
25
public
function
isFilterSupported
()
26
{
27
return
false
;
28
}
29
30
31
//
32
// ADT
33
//
34
35
protected
function
initADTDefinition
()
36
{
37
return
ilADTFactory::getInstance
()->getDefinitionInstanceByType(
"Location"
);
38
}
39
40
41
//
42
// import/export
43
//
44
45
public
function
getValueForXML
(
ilADT
$element)
46
{
47
return
$element->getLatitude() .
"#"
. $element->getLongitude() .
"#"
. $element->getZoom();
48
}
49
50
public
function
importValueFromXML
($a_cdata)
51
{
52
$parts = explode(
"#"
, $a_cdata);
53
if
(
sizeof
($parts) == 3) {
54
$adt
= $this->
getADT
();
55
$adt
->setLatitude($parts[0]);
56
$adt
->setLongitude($parts[1]);
57
$adt
->setZoom($parts[2]);
58
}
59
}
60
61
62
//
63
// search
64
//
65
66
public
function
getLuceneSearchString
($a_value)
67
{
68
// #14777 - currently not supported
69
return
;
70
71
if
($a_value[
"tgl"
]) {
72
}
73
}
74
}
ilAdvancedMDFieldDefinition\$adt
$adt
Definition:
class.ilAdvancedMDFieldDefinition.php:25
ilAdvancedMDFieldDefinitionLocation
AMD field type location.
Definition:
class.ilAdvancedMDFieldDefinitionLocation.php:14
ilAdvancedMDFieldDefinitionLocation\initADTDefinition
initADTDefinition()
Definition:
class.ilAdvancedMDFieldDefinitionLocation.php:35
ilAdvancedMDFieldDefinition
AMD field abstract base class.
Definition:
class.ilAdvancedMDFieldDefinition.php:14
ilAdvancedMDFieldDefinitionLocation\importValueFromXML
importValueFromXML($a_cdata)
Definition:
class.ilAdvancedMDFieldDefinitionLocation.php:50
ilAdvancedMDFieldDefinitionLocation\getType
getType()
Definition:
class.ilAdvancedMDFieldDefinitionLocation.php:20
ilAdvancedMDFieldDefinition\getADT
getADT()
Get ADT instance.
Definition:
class.ilAdvancedMDFieldDefinition.php:351
ilADTFactory\getInstance
static getInstance()
Get singleton.
Definition:
class.ilADTFactory.php:24
ilAdvancedMDFieldDefinitionLocation\getLuceneSearchString
getLuceneSearchString($a_value)
Definition:
class.ilAdvancedMDFieldDefinitionLocation.php:66
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilAdvancedMDFieldDefinitionLocation\getValueForXML
getValueForXML(ilADT $element)
Definition:
class.ilAdvancedMDFieldDefinitionLocation.php:45
ilAdvancedMDFieldDefinitionLocation\isFilterSupported
isFilterSupported()
Definition:
class.ilAdvancedMDFieldDefinitionLocation.php:25
php
Services
AdvancedMetaData
classes
Types
class.ilAdvancedMDFieldDefinitionLocation.php
Generated on Thu Jan 16 2025 19:02:16 for ILIAS by
1.8.13 (using
Doxyfile
)