mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
deleteProjekttask hinzugefügt
This commit is contained in:
@@ -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);
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -25,12 +25,23 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
||||
<wsdl:message name="SaveProjekttaskResponse">
|
||||
<wsdl:part name="message" type="xsd:string"></wsdl:part>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="DeleteProjekttaskRequest">
|
||||
<wsdl:part name="projekttask_id" type="xsd:string"></wsdl:part>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="DeleteProjekttaskResponse">
|
||||
<wsdl:part name="projekttask_id" type="xsd:string"></wsdl:part>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:portType name="ConfigPortType" >
|
||||
<wsdl:operation name="saveProjekttask">
|
||||
<wsdl:input message="tns:SaveProjekttaskRequest"></wsdl:input>
|
||||
<wsdl:output message="tns:SaveProjekttaskResponse"></wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="deleteProjekttask">
|
||||
<wsdl:input message="tns:DeleteProjekttaskRequest"></wsdl:input>
|
||||
<wsdl:output message="tns:DeleteProjekttaskResponse"></wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
<wsdl:binding name="ConfigBinding" type="tns:ConfigPortType">
|
||||
@@ -44,6 +55,15 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
||||
<soap:body use="encoded" namespace="http://localhost/soap/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="deleteProjekttask">
|
||||
<soap:operation soapAction="<?php echo APP_ROOT."soap/deleteProjekttask";?>" />
|
||||
<wsdl:input>
|
||||
<soap:body use="encoded" namespace="http://localhost/soap/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
||||
</wsdl:input>
|
||||
<wsdl:output>
|
||||
<soap:body use="encoded" namespace="http://localhost/soap/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
<wsdl:service name="Projekttask">
|
||||
|
||||
Reference in New Issue
Block a user