<?php

require_once "Config.php";
require_once "Blueprint.php";
require_once "BlueprintReader.php";
require_once "EntityExporter.php";
?>
<h1>EntityExporter Test</h1>
<?

// extract config variables
$path_blueprints = BPConfig::$path_blueprints;

$blueprint = $_GET["blueprint"];
$path = $path_blueprints . $blueprint . ".xml";

echo "Path = $path<br>";

$bp = BlueprintReader::read($path);

$csv = EntityExporter::exportCsv($bp);
$csv = nl2br($csv);

echo "<pre>";
echo "$csv";
echo "</pre>";

?>