• R/O
  • SSH
  • HTTPS

mantisbtmonitor: Commit


Commit MetaInfo

Revision28 (tree)
Time2017-09-21 02:48:28
Authorderekwildstar

Log Message

- Função para adição de anexos

Change Summary

Incremental Difference

--- trunk/server/index.php (revision 27)
+++ trunk/server/index.php (revision 28)
@@ -351,7 +351,9 @@
351351
352352 return $result;
353353 }
354-
354+///////////////////////////////////////////////////////////////////////////////////////////////////////////////
355+// Funções wrapper para o webservice do mantis
356+///////////////////////////////////////////////////////////////////////////////////////////////////////////////
355357 function addAttachment($aUserName, $aPassword, $aIssueId, $aFileName, $aMimeType, $aBase64Contents) {
356358 global $configurations;
357359
@@ -370,4 +372,26 @@
370372
371373 return $result;
372374 }
375+
376+function removeAttachment($aUserName, $aPassword, $aIssueId, $aFileName, $aMimeType, $aBase64Contents) {
377+ /*
378+ global $configurations;
379+
380+ $client = new SoapClient($configurations->getMantisConnectWSDL(),True);
381+
382+ $result = $client->call("mc_issue_attachment_add",array("username"=>$aUserName
383+ ,"password"=>$aPassword
384+ ,"issue_id"=>$aIssueId
385+ ,"name"=>$aFileName
386+ ,"file_type"=>$aMimeType
387+ ,"content"=>$aBase64Contents));
388+
389+ if (!$result) {
390+ $result = $client->responseData;
391+ }
392+
393+ return $result;
394+ */
395+}
396+
373397 ?>
\ No newline at end of file
Show on old repository browser