'.$testMatch.' is not valid.
'; echo 'Parameter id is not valid (integer or cs integer list).
'; die(); } $id = $testMatch; $testMatch = NULL; } if (isset($_REQUEST["uuid"]) & $_REQUEST["uuid"] != "") { $uuidClass = new Uuid(); if ($uuidClass->isValid($_REQUEST["uuid"])) { $uuid = $_REQUEST["uuid"]; } else { echo 'Parameter uuid is not a valid mapbender uuid.
'; die(); } } if (isset($_REQUEST["outputFormat"]) & $_REQUEST["outputFormat"] != "") { //validate to csv integer list $testMatch = $_REQUEST["outputFormat"]; if (!($testMatch == 'iso19139' or $testMatch == 'ckan')){ //echo 'outputFormat: '.$testMatch.' is not valid.
'; echo 'Parameter outputFormat is not valid (iso19139,ckan).
'; die(); } $outputFormat = $testMatch; $testMatch = NULL; } if ($uuid !== false) { $group = new Group($uuid); } else { if ($id !== false) { $group = new Group($id); } else { echo 'Neither id nor uuid for requesting an organization was given!
'; die(); } } switch ($outputFormat) { case "ckan": header("Content-Type: application/json"); echo $group->export('ckan'); break; case "iso19139": header("Content-type: application/xhtml+xml; charset=UTF-8"); echo $group->export('iso19139'); break; } ?>