-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmaps.model.php
47 lines (39 loc) · 1.03 KB
/
maps.model.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/* Copyright (C) Kim, MinSoo <[email protected]> */
/**
* @class mapsModel
* @author MinSoo Kim ([email protected])
* @brief model class of the maps module
* @todo 상세 작업을 추가해서 마무리(?) 해야한다.
*/
class mapsModel extends maps
{
/**
* @brief Return maps module setting
*/
public function getMapsConfig()
{
$oModuleModel = getModel('module');
$maps_config = $oModuleModel->getModuleConfig('maps');
if(!is_object($maps_config))
{
$maps_config = new stdClass();
}
//default settings
if(!$maps_config->maps_api_type)
{
$maps_config->maps_api_type = 'google';
}
return $maps_config;
}
public function getApiXmlObject($uri, $headers = null) {
$xml = '';
$xml = FileHandler::getRemoteResource($uri, null, 3, 'GET', 'application/xml', $headers);
$xml = preg_replace("/<\?xml([.^>]*)\?>/i", "", $xml);
$oXmlParser = new XmlParser();
$xml_doc = $oXmlParser->parse($xml);
return $xml_doc;
}
}
/* End of file maps.model.php */
/* Location: ./modules/maps/maps.model.php */