function GetVariableInfoObject($variable) { wof_start(); echo '<VariablesResponse xmlns="http://www.cuahsi.org/waterML/1.1/">'; echo wof_GetVariableInfo($variable); echo '</VariablesResponse>'; wof_finish(); }
/** * Implement GetVariableInfoObject * */ public function GetVariableInfoObject() { if ($this->validate_token()) { $variable = ""; if (isset($_REQUEST['variable'])) { $variable = $_REQUEST['variable']; } write_XML_header(); echo wof_GetVariableInfo($variable); exit; } }