Blame view

src/InputOutput/WSImpl/Config/WSConfigClass.php 1.76 KB
d5a86709   Elena.Budnik   interim commit
1
<?php
d5a86709   Elena.Budnik   interim commit
2
3
4
5
6
7
8
/**
 * @class WSConfigClass
 * @brief Class that's contain all specific configuration of the WebServices client
 * @details
 */
class WSConfigClass
{
60dcc38e   Elena.Budnik   getParameter (sim...
9
10
11
12
	const PARAMETER     = "getparameter";
	const PLOT          = "getplot";
	const ORBIT         = "getorbites";
	const DATASET       = "getdataset";
d5a86709   Elena.Budnik   interim commit
13
	
3f5a72fb   Myriam Bouchemit   batch time set to...
14
	public static $timeToBatchMode = 240;
d5a86709   Elena.Budnik   interim commit
15
16
	public static $enableBatch = true;
	public static $file_prefix = "result_";
3f5a72fb   Myriam Bouchemit   batch time set to...
17
	public static $timeLimitQuery = 1800; // time limit for the current token in secs
c17544cb   Elena.Budnik   time constant for...
18
	
738745d3   Elena.Budnik   draft for Web Ser...
19
	//TODO define during installation
c2e20e99   Elena.Budnik   WebServices folder
20
	private static $xslDir = "xml/";
d5a86709   Elena.Budnik   interim commit
21
22
	
	private static $wsResultDir = "WSRESULT";
60dcc38e   Elena.Budnik   getParameter (sim...
23
	private static $jobsFile = "WSjobs.xml";
d5a86709   Elena.Budnik   interim commit
24
	
3e0cf0aa   Elena.Budnik   Static class prop...
25
	private static $WebUrl;
1346266d   Elena.Budnik   interin commit
26
	
df66d049   Benjamin Renard   Fix WS config
27
	private static $dataSetInfoDir = "LocalData/DataSetInfo";
3cdde4bf   Elena.Budnik   getDataset()
28
	
90f366ce   Benjamin Renard   Introduce anonymo...
29
30
31
	private static $anonymousUserName = "impex";
	private static $anonymousUserPwd  = "impexfp7";

1346266d   Elena.Budnik   interin commit
32
33
	public static function getUrl()
	{
3e0cf0aa   Elena.Budnik   Static class prop...
34
35
36
			//self::$WebUrl = "http://apus.irap.omp.eu/NEWAMDA/data/";
			self::$WebUrl = webAlias."/data/";
			
1346266d   Elena.Budnik   interin commit
37
38
39
			return self::$WebUrl.self::$wsResultDir.'/';
	}
	
d5a86709   Elena.Budnik   interim commit
40
41
	public static function getWsResultDir()
	{
07b282f0   Elena.Budnik   interim commit
42
			return IHMConfigClass::getDataDir().self::$wsResultDir.'/';
d5a86709   Elena.Budnik   interim commit
43
44
45
46
	}
	
	public static function getWsJobsFile()
	{
07b282f0   Elena.Budnik   interim commit
47
			return IHMConfigClass::getDataDir().self::$wsResultDir.'/'.self::$jobsFile;
d5a86709   Elena.Budnik   interim commit
48
	}
3cdde4bf   Elena.Budnik   getDataset()
49
	
3cdde4bf   Elena.Budnik   getDataset()
50
51
52
53
	public static function getDataSetInfoDir()
	{
			return IHMConfigClass::getGenericDataPath().self::$dataSetInfoDir.'/';
	}
738745d3   Elena.Budnik   draft for Web Ser...
54
55
56
	
	public static function getXslDir()
	{
df66d049   Benjamin Renard   Fix WS config
57
			return IHM_SRC_DIR."/php/WebServices/".self::$xslDir;
738745d3   Elena.Budnik   draft for Web Ser...
58
	}
e43ad159   Elena.Budnik   getOrbites()
59
60
61
62
63
	
	public static function getOrbitsXml()
	{
			return IHMConfigClass::getGenericDataPath()."LocalData/OrbitsAll.xml";
	}
90f366ce   Benjamin Renard   Introduce anonymo...
64
65
66
67
68
69
70
71
72
73

	public static function getAnonymousUserName()
	{
		return self::$anonymousUserName;
	}

	public static function getAnonymousUserPwd()
	{
		return self::$anonymousUserPwd;
	}
d5a86709   Elena.Budnik   interim commit
74
75
}
?>