cm_soap_announcements.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. array(
  15. 'username' => 'xsd:string',
  16. 'password' => 'xsd:string',
  17. 'course_code' => 'xsd:string',
  18. ),
  19. array('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. array(
  29. 'username' => 'xsd:string',
  30. 'password' => 'xsd:string',
  31. 'course_code' => 'xsd:string',
  32. 'announcement_id' => 'xsd:string',
  33. 'field' => 'xsd:string',
  34. ),
  35. array('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. );