function GetSitesByBoxObject($north, $south, $east, $west, $includeSeries) { wof_start(); echo '<GetSitesByBoxObjectResponse xmlns="http://www.cuahsi.org/his/1.1/ws/">'; echo wof_GetSitesByBox($west, $south, $east, $north, $includeSeries); echo '</GetSitesByBoxObjectResponse>'; wof_finish(); }
/** * Implement GetSitesByBoxObject * */ public function GetSitesByBoxObject() { if ($this->validate_token()) { $includeSeries = FALSE; if (!isset($_REQUEST["west"])) { echo "Missing parameter: west"; exit; } if (!isset($_REQUEST["south"])) { echo "Missing parameter: south"; exit; } if (!isset($_REQUEST["east"])) { echo "Missing parameter: east"; exit; } if (!isset($_REQUEST["north"])) { echo "Missing parameter: north"; exit; } if (isset($_REQUEST["IncludeSeries"])) { $includeSeries = $_REQUEST["IncludeSeries"]; //TRUE or FALSE } $west = $_REQUEST['west']; if ($west == NULL) { echo "Value cannot be null.\nParameter name: west"; exit; } $south = $_REQUEST['south']; if ($south == NULL) { echo "Value cannot be null.\nParameter name: south"; exit; } $east = $_REQUEST['east']; if ($east == NULL) { echo "Value cannot be null.\nParameter name: east"; exit; } $north = $_REQUEST['north']; if ($north == NULL) { echo "Value cannot be null.\nParameter name: north"; exit; } write_XML_header(); echo wof_GetSitesByBox($west, $south, $east, $north, $includeSeries); exit; } }