WSConfigClass.php 1.43 KB
<?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 = 10;
	public static $enableBatch = true;
	public static $file_prefix = "result_";
	public static $timeLimitQuery = 600; // secs
	
	//TODO define during installation
	private static $xslDir = "xml/";
	
	private static $wsResultDir = "WSRESULT";
	private static $jobsFile = "WSjobs.xml";
	
	// TODO define during installation 
	private static $WebUrl = "http://apus.irap.omp.eu/NEWAMDA/data/";
	
	private static $dataSetInfoDir = "DataSetInfo";
	
	public static function getUrl()
	{
			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";
	}
}
?>