function GetValuesForASiteObject($site, $startDate, $endDate)
 {
     wof_start();
     echo '<GetValuesForASiteObjectResponse xmlns="http://www.cuahsi.org/his/1.1/ws/">';
     echo wof_GetValuesForASite($site, $startDate, $endDate);
     echo '</GetValuesForASiteObjectResponse>';
     wof_finish();
 }
Example #2
0
 /**
  * Implement GetValuesForASiteObject
  *
  */
 public function GetValuesForASiteObject()
 {
     if ($this->validate_token()) {
         if (!isset($_REQUEST['site'])) {
             echo "Missing parameter: site";
             exit;
         }
         if (!isset($_REQUEST['startDate'])) {
             echo "Missing parameter: startDate";
             exit;
         }
         if (!isset($_REQUEST['endDate'])) {
             echo "Missing parameter: endDate";
             exit;
         }
         $site = $_REQUEST['site'];
         $startDate = $_REQUEST['startDate'];
         $endDate = $_REQUEST['endDate'];
         write_XML_header();
         echo wof_GetValuesForASite($site, $startDate, $endDate);
         exit;
     }
 }