die("Fehlende Seitenkonfiguration"); } //========================== // look for database definition if ($_config->database()) { // open object database if ($_config->query()) { $db = new Database($_config->database()); // ===================================== // execute activities with database $activity = new Activity($httpParam, $_config, $db); //TODO // add paging to _options $_config->options()["start"] = 0; $_config->options()["limit"] = 100; if ($httpParam->id()) { $_config->set("id", $httpParam->id(), "options"); } if ($httpParam->order()) { $_config->set("order", $httpParam->order(), "options"); } if ($httpParam->ordertype()) { $_config->set("ordertype", $httpParam->ordertype(), "options"); } $db->query($_config->query(), $_config->options()); $xmlString = $db->fetch_all(); } } else { // execute activities without database $activity = new Activity($httpParam, $_config); $xmlString = $_config->html();