cm_soap_announcements.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.webservices
  5. */
  6. require_once __DIR__.'/cm_webservice_announcements.php';
  7. require_once __DIR__.'/cm_soap.php';
  8. /**
  9. * Configures the WSCourse SOAP service.
  10. */
  11. $s = WSCMSoapServer::singleton();
  12. $s->register(
  13. 'WSCMAnnouncements.get_announcements_id',
  14. [
  15. 'username' => 'xsd:string',
  16. 'password' => 'xsd:string',
  17. 'course_code' => 'xsd:string',
  18. ],
  19. ['return' => 'xsd:string'],
  20. 'urn:WSCMService',
  21. '',
  22. '',
  23. '',
  24. 'Retorna o ID dos anuncios visiveis a um usuario de uma disciplina.'
  25. );
  26. $s->register(
  27. 'WSCMAnnouncements.get_announcement_data',
  28. [
  29. 'username' => 'xsd:string',
  30. 'password' => 'xsd:string',
  31. 'course_code' => 'xsd:string',
  32. 'announcement_id' => 'xsd:string',
  33. 'field' => 'xsd:string',
  34. ],
  35. ['return' => 'xsd:string'],
  36. 'urn:WSCMService',
  37. '',
  38. '',
  39. '',
  40. 'Retorna o conteudo do campo informado de um anuncio de chave ID. Campos retornaveis: sender, date, title e content'
  41. );