mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 17:32:18 +00:00
Planner - Editieren von Projekten
Planner - Löschen von Tasks
This commit is contained in:
@@ -29,7 +29,7 @@ require_once('../include/basis_db.class.php');
|
||||
require_once('../include/projekt.class.php');
|
||||
require_once('../include/datum.class.php');
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/projekt.wsdl.php");
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/projekt.wsdl.php?".microtime());
|
||||
$SOAPServer->addFunction("saveProjekt");
|
||||
$SOAPServer->handle();
|
||||
|
||||
@@ -46,8 +46,9 @@ ini_set("soap.wsdl_cache_enabled", "0");
|
||||
* @param date $beginn
|
||||
* @param date $ende
|
||||
* @param string $oe_kurzbz
|
||||
* @param boolean $neu
|
||||
*/
|
||||
function saveProjekt($projekt_kurzbz, $nummer, $titel, $beschreibung, $beginn, $ende, $oe_kurzbz)
|
||||
function saveProjekt($projekt_kurzbz, $nummer, $titel, $beschreibung, $beginn, $ende, $oe_kurzbz, $neu)
|
||||
{
|
||||
|
||||
$projekt = new projekt();
|
||||
@@ -58,10 +59,13 @@ function saveProjekt($projekt_kurzbz, $nummer, $titel, $beschreibung, $beginn, $
|
||||
$projekt->beginn = $beginn;
|
||||
$projekt->ende = $ende;
|
||||
$projekt->oe_kurzbz = $oe_kurzbz;
|
||||
$projekt->new = true;
|
||||
if($neu=='true')
|
||||
$projekt->new = true;
|
||||
else
|
||||
$projekt->new = false;
|
||||
|
||||
if($projekt->save($new = true))
|
||||
return "OK";
|
||||
if($projekt->save())
|
||||
return $projekt->projekt_kurzbz;
|
||||
else
|
||||
return new SoapFault("Server", $projekt->errormsg);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
||||
<wsdl:part name="beginn" type="xsd:string"></wsdl:part>
|
||||
<wsdl:part name="ende" type="xsd:string"></wsdl:part>
|
||||
<wsdl:part name="oe_kurzbz" type="xsd:string"></wsdl:part>
|
||||
<wsdl:part name="neu" type="xsd:boolean"></wsdl:part>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:message name="SaveProjektResponse">
|
||||
|
||||
@@ -27,12 +27,13 @@ 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/benutzer.class.php');
|
||||
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");
|
||||
$SOAPServer->addFunction("deleteProjekttask");
|
||||
$SOAPServer->handle();
|
||||
|
||||
// WSDL Chache auf aus
|
||||
|
||||
@@ -30,7 +30,7 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
|
||||
<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:part name="message" type="xsd:string"></wsdl:part>
|
||||
</wsdl:message>
|
||||
|
||||
<wsdl:portType name="ConfigPortType" >
|
||||
|
||||
Reference in New Issue
Block a user