mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
- Projekttasks können per klick im Tree erledigt werden
- RDF Klasse Erweiterung für verschachtelte Sequenzen - Projektphase RDF wird jetzt über RDF Klasse erzeugt
This commit is contained in:
@@ -36,6 +36,7 @@ $SOAPServer = new SoapServer(APP_ROOT."/soap/projekttask.wsdl.php?".microtime())
|
||||
$SOAPServer->addFunction("saveProjekttask");
|
||||
$SOAPServer->addFunction("deleteProjekttask");
|
||||
$SOAPServer->addFunction("saveMantis");
|
||||
$SOAPServer->addFunction("setErledigt");
|
||||
$SOAPServer->handle();
|
||||
|
||||
// WSDL Chache auf aus
|
||||
@@ -151,6 +152,33 @@ function saveMantis($projekttask_id, $mantis_id, $issue_summary, $issue_descript
|
||||
return new SoapFault("Server", 'Fehler:'.$mantis->errormsg);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Setzt den Erledigt Status
|
||||
* @param $projekttask_id
|
||||
* @param $erledigt
|
||||
*/
|
||||
function setErledigt($projekttask_id, $erledigt)
|
||||
{
|
||||
$projekttask = new projekttask();
|
||||
|
||||
if($projekttask->load($projekttask_id))
|
||||
{
|
||||
$projekttask->new = false;
|
||||
$projekttask->erledigt=$erledigt;
|
||||
|
||||
if($projekttask->save())
|
||||
{
|
||||
return $projekttask->projekttask_id;
|
||||
}
|
||||
else
|
||||
return new SoapFault("Server", $projekttask->errormsg);
|
||||
}
|
||||
else
|
||||
return new SoapFault("Server", "Fehler beim Laden");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,14 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
||||
<wsdl:part name="message" type="xsd:string"></wsdl:part>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="setErledigtRequest">
|
||||
<wsdl:part name="projekttask_id" type="xsd:string"></wsdl:part>
|
||||
<wsdl:part name="erledigt" type="xsd:boolean"></wsdl:part>
|
||||
</wsdl:message>
|
||||
<wsdl:message name="setErledigtResponse">
|
||||
<wsdl:part name="message" type="xsd:string"></wsdl:part>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="SaveMantisRequest">
|
||||
<wsdl:part name="projekttask_id" type="xsd:string"></wsdl:part>
|
||||
<wsdl:part name="mantis_id" type="xsd:string"></wsdl:part>
|
||||
@@ -85,6 +93,10 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
||||
<wsdl:input message="tns:SaveMantisRequest"></wsdl:input>
|
||||
<wsdl:output message="tns:SaveMantisResponse"></wsdl:output>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="setErledigt">
|
||||
<wsdl:input message="tns:setErledigtRequest"></wsdl:input>
|
||||
<wsdl:output message="tns:setErledigtResponse"></wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
<wsdl:binding name="ConfigBinding" type="tns:ConfigPortType">
|
||||
@@ -116,6 +128,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="setErledigt">
|
||||
<soap:operation soapAction="<?php echo APP_ROOT."soap/setErledigt";?>" />
|
||||
<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