/** * Implement GetSitesObject * */ public function GetSitesObject() { if ($this->validate_token()) { $site = isset($_REQUEST['site']) ? explode(",", $_REQUEST['site']) : array(); header("Content-type: text/xml"); echo chr(60) . chr(63) . 'xml version="1.0" encoding="utf-8" ' . chr(63) . chr(62); echo wof_GetSites($site); exit; } }
function GetSitesObject($site = NULL) { wof_start(); echo '<GetSitesObjectResponse xmlns="http://www.cuahsi.org/his/1.1/ws/">'; echo wof_GetSites($site); echo '</GetSitesObjectResponse>'; wof_finish(); }
/** * Implement GetSitesObject * */ public function GetSitesObject() { if ($this->validate_token()) { $site = isset($_REQUEST['site']) ? explode(",", $_REQUEST['site']) : array(); write_XML_header(); echo wof_GetSites($site); exit; } }