WSConfigClass.php
1.88 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* @class WSConfigClass
* @brief Class that's contain all specific configuration of the WebServices client
* @details
*/
class WSConfigClass
{
const PARAMETER = "getparameter";
const PLOT = "getplot";
const ORBIT = "getorbites";
const DATASET = "getdataset";
public static $timeToBatchMode = 240;
public static $enableBatch = true;
public static $file_prefix = "result_";
public static $timeLimitQuery = 1800; // time limit for the current token in secs
//TODO define during installation
private static $xslDir = "xml/";
private static $wsResultDir = "WSRESULT";
private static $jobsFile = "WSjobs.xml";
private static $WebUrl;
private static $dataSetInfoDir = "LocalData/DataSetInfo";
private static $anonymousUserName = "impex";
private static $anonymousUserPwd = "impexfp7";
public static function getUrl()
{
//self::$WebUrl = "http://apus.irap.omp.eu/NEWAMDA/data/";
self::$WebUrl = webAlias."/data/";
return self::$WebUrl.self::$wsResultDir.'/';
}
public static function getWsResultDir()
{
return IHMConfigClass::getDataDir().self::$wsResultDir.'/';
}
public static function getWsJobsFile()
{
return IHMConfigClass::getDataDir().self::$wsResultDir.'/'.self::$jobsFile;
}
public static function getDataSetInfoDir()
{
return IHMConfigClass::getGenericDataPath().self::$dataSetInfoDir.'/';
}
public static function getXslDir()
{
return IHM_SRC_DIR."/php/WebServices/".self::$xslDir;
}
public static function getOrbitsXml()
{
return IHMConfigClass::getGenericDataPath()."LocalData/OrbitsAll.xml";
}
public static function getParamTemplateListFilePath()
{
return IHMConfigClass::getParamTemplateListFilePath();
}
public static function getAnonymousUserName()
{
return self::$anonymousUserName;
}
public static function getAnonymousUserPwd()
{
return self::$anonymousUserPwd;
}
}
?>