From e848ef7958cbb32e8d4be023a3997bb1c6d5085b Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Fri, 9 Sep 2011 09:57:39 +0000 Subject: [PATCH] =?UTF-8?q?es=20k=C3=B6nnen=20nun=20projekt=5Fkurzbz=20und?= =?UTF-8?q?=20projektphasen=20=C3=BCbergeben=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rdf/ressource.rdf.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/rdf/ressource.rdf.php b/rdf/ressource.rdf.php index 0ba451e74..88b5cacde 100644 --- a/rdf/ressource.rdf.php +++ b/rdf/ressource.rdf.php @@ -18,6 +18,12 @@ * Authors: Karl Burkhart . */ +$projekt_kurzbz=(isset($_GET['projekt_kurzbz'])?$_GET['projekt_kurzbz']:null); +$projekt_phase=(isset($_GET['projekt_phase'])?$_GET['projekt_phase']:null); + +if($projekt_phase != null && (is_numeric($projekt_phase) == false )) + die('Ungültige ProjektphasenID'); + // header for no cache header("Cache-Control: no-cache"); header("Cache-Control: post-check=0, pre-check=0",false); @@ -42,10 +48,15 @@ echo ' xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:RESSOURCE="'.$rdf_url.'rdf#" > -'; - +'; $ressource = new ressource(); -$ressource->getAllRessourcen(); + +if($projekt_kurzbz!=null) + $ressource->getProjectRessourcen($projekt_kurzbz); +else if($projekt_phase!= null) + $ressource->getPhaseRessourcen($projekt_phase); +else + $ressource->getAllRessourcen(); foreach ($ressource->result as $res) {