if (isset($auth)) { getImage($url, $auth); } else { getImage($url); } break; case 'external': getExternalRequest($query->getOwsproxyServiceId()); break; case 'getfeature': $arrayFeatures = array($reqParams['typename']); $arrayOnlineresources = checkWfsPermission($query->getOwsproxyServiceId(), $arrayFeatures); $query->setOnlineResource($arrayOnlineresources['wfs_getfeature']); $request = $query->getRequest(); $request = stripslashes($request); getFeature($request); break; // case wfs transaction (because of raw POST the request param is empty) // case wfs transaction (because of raw POST the request param is empty) case '': $arrayFeatures = getWfsFeaturesFromTransaction($HTTP_RAW_POST_DATA); $arrayOnlineresources = checkWfsPermission($query->getOwsproxyServiceId(), $arrayFeatures); $query->setOnlineResource($arrayOnlineresources['wfs_transaction']); $request = $query->getRequest(); doTransaction($request, $HTTP_RAW_POST_DATA); break; default: } /*********************************************************/ function throwE($e) {
function addFeatures($directorio) { foreach ($this->class->features as $feature => $data) { $class = getFeature($feature, $this, $directorio); $class->execute(); } }
// Start examining directories and create an array with the classes $classes = examinate('models'); $results = array(); // Make the table with their attributes foreach ($classes as $class) { $tabla = $class->id; $key = $class->id . "_id"; $makeTable = new makeTable($tabla); $makeTable->addKey($key, "number"); $makeTable->addColumn("updated_at", "timestamp"); $makeTable->addColumn("created_at", "timestamp"); foreach ($class->columns as $key => $value) { $makeTable->addColumn($key, $value); } foreach ($class->features as $feature => $data) { $class = getFeature($feature); $addColumns = $class->addColumns(); foreach ($addColumns as $key => $value) { $makeTable->addColumn($key, $value); } } $sql = $makeTable->execute(); if ($conn->query($sql) === TRUE) { $results[] = "Successfull"; } else { $results[] = "Error"; } } if (count(array_unique($results)) === 1 && end($results) === 'Successfull') { // All the array values is the same header("Location: index2.html");