SPEASY_CDAWEB.php
819 Bytes
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
<?php
/**
* @class SPEASY_CDAWEB
* @brief
*/
class SPEASY_CDAWEB extends RemoteDataCenterClientClass
{
function __construct()
{
$this->baseID = get_class($this);
$this->baseDom = new DomDocument("1.0");
$this->baseDomName = RemoteData.$this->baseID."/base.xml";
if (!@$this->baseDom->load($this->baseDomName))
echo 'Cannot Load base.xml for '.$this->baseID.PHP_EOL;
date_default_timezone_set('UTC');
}
protected function makeInternalParamXml($param)
{
return true;
}
public function makeAllParams()
{
}
// make components description from base.xml
public function makeCenterNode($xmlDom)
{
$nodeBase = $this->baseDom->getElementsByTagName('dataCenter')->item(0);
$node = $xmlDom->importNode($nodeBase, true);
return $node;
}
}
?>