diff --git a/src/DDSERVICES/SOAP/DDserverWeb.php b/src/DDSERVICES/SOAP/DDserverWeb.php
index 2d550bb..ccaf302 100644
--- a/src/DDSERVICES/SOAP/DDserverWeb.php
+++ b/src/DDSERVICES/SOAP/DDserverWeb.php
@@ -8,7 +8,6 @@
* @version $Id: DDserverWeb.php,v 1.11 2013/04/18 06:54:39 benjamin Exp $
*/
-
class DDService
{
@@ -57,6 +56,47 @@
return null;
}
+/**
+* Returns list of datasets with TimeRestriction
+*/
+ function getDatasetsWithTimeRestriction()
+ {
+ $result = array(
+ );
+ $referXML = baseDir."/DDsys.xml";
+ $DDsys = new DOMDocument("1.0");
+ @$DDsys->load($referXML);
+ $xp = new domxpath($DDsys);
+ $VINodes = $xp->query("//VI");
+ if ($VINodes->length == 0) {
+ return $result;
+ }
+
+ foreach ($VINodes as $VINode)
+ {
+ $locationNode = $VINode->getElementsByTagName("LOCATION");
+ $nameNode = $VINode->getElementsByTagName("NAME");
+ if (($locationNode->length > 0) && ($nameNode->length > 0))
+ {
+ $locationNode = $locationNode->item(0);
+ $nameNode = $nameNode->item(0);
+ $location = $locationNode->nodeValue;
+ $viName = $nameNode->nodeValue;
+ if (!empty($location) && !empty($viName)) {
+ if (file_exists($location."TimeRestriction")) {
+ $restr = file($location."TimeRestriction", FILE_IGNORE_NEW_LINES);
+ $result[] = array(
+ 'vi' => $viName,
+ 'restriction' => $restr[0],
+ );
+ }
+ }
+ }
+ }
+
+ return $result;
+ }
+
/**
* Returns restricted TimeRestriction and GlobalStop in case of time restriction
*/
@@ -497,10 +537,9 @@
}
}
+require_once(dirname(__FILE__) . '/DDserverWeb_ini.php');
+ini_set("soap.wsdl_cache_enabled", "0");
- require_once 'DDserverWeb_ini.php';
-
- ini_set("soap.wsdl_cache_enabled", "0");
// use_soap_error_handler(false);
$server = new SoapServer("./dd.wsdl");
$server->setClass("DDService");
diff --git a/src/DDSERVICES/SOAP/dd.wsdl.in b/src/DDSERVICES/SOAP/dd.wsdl.in
index e4d15fa..ca315d8 100644
--- a/src/DDSERVICES/SOAP/dd.wsdl.in
+++ b/src/DDSERVICES/SOAP/dd.wsdl.in
@@ -34,7 +34,19 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -142,6 +154,11 @@
+
+
+
+
+
@@ -212,6 +229,10 @@
+
+
+
+
@@ -404,6 +425,17 @@
encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'/>
+
+
+
+
+
+
+
--
libgit2 0.21.2