From 026bb39746683aa36e8762a17d881a3758dc9664 Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Tue, 16 Aug 2011 08:17:59 +0000 Subject: [PATCH] =?UTF-8?q?deleteProjekttask=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soap/projekttask.soap.php | 23 ++++++++++++++++++----- soap/projekttask.wsdl.php | 22 +++++++++++++++++++++- 2 files changed, 39 insertions(+), 6 deletions(-) diff --git a/soap/projekttask.soap.php b/soap/projekttask.soap.php index c565fdcac..549903439 100644 --- a/soap/projekttask.soap.php +++ b/soap/projekttask.soap.php @@ -27,7 +27,9 @@ header("Pragma: no-cache"); require_once('../config/vilesci.config.inc.php'); require_once('../include/basis_db.class.php'); require_once('../include/projekttask.class.php'); +require_once('../include/benutzer'); require_once('../include/datum.class.php'); +require_once('../include/functions.inc.php'); $SOAPServer = new SoapServer(APP_ROOT."/soap/projekttask.wsdl.php?".microtime()); $SOAPServer->addFunction("saveProjekttask"); @@ -45,14 +47,11 @@ ini_set("soap.wsdl_cache_enabled", "0"); * @param string $beschreibung * @param string $aufwand * @param string $mantis_id - * @param date $insertamum - * @param string $insertvon - * @param date $updateamum - * @param string $updatevon + * @param string $user */ function saveProjekttask($projekttask_id, $projektphase_id, $bezeichnung, $beschreibung, $aufwand, $mantis_id, $user) { - + $user = get_uid(); $projekttask = new projekttask(); // wenn projekttaskt_id == leer -> neuer task anlegen ohne laden if($projekttask_id != '') @@ -85,6 +84,20 @@ function saveProjekttask($projekttask_id, $projektphase_id, $bezeichnung, $besch else return new SoapFault("Server", $projekttask->errormsg); } + +/** + * + * Löscht den Task mit der vom Webservice übergebenen ID + * @param $projekttask_id + */ +function deleteProjekttask($projekttask_id) +{ + $projekttask = new projekttask(); + if($projekttask->delete($projekttask_id)) + return "OK"; + else + return new SoapFault("Server", $projekttask->errormsg); +} ?> diff --git a/soap/projekttask.wsdl.php b/soap/projekttask.wsdl.php index 975626a97..afb169ff5 100644 --- a/soap/projekttask.wsdl.php +++ b/soap/projekttask.wsdl.php @@ -25,12 +25,23 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> - + + + + + + + + + + + + @@ -44,6 +55,15 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> + + " /> + + + + + + +