Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/main/webservices/cm_soap_announcements.php

49 lines
1.0 KiB

<?php
require_once(dirname(__FILE__).'/cm_webservice_announcements.php');
require_once(dirname(__FILE__).'/cm_soap.php');
/**
* Configures the WSCourse SOAP service
*/
$s = WSCMSoapServer::singleton();
$s->register(
'WSCMAnnouncements.get_announcements_id',
array(
'username' => 'xsd:string',
'password' => 'xsd:string',
'course_code' => 'xsd:string'
),
array('return' => 'xsd:string'),
'urn:WSCMService',
'',
'',
'',
'Retorna o ID dos anuncios visiveis a um usuario de uma disciplina.'
);
$s->register(
'WSCMAnnouncements.get_announcement_data',
array(
'username' => 'xsd:string',
'password' => 'xsd:string',
'course_code' => 'xsd:string',
'announcement_id' => 'xsd:string',
'field' => 'xsd:string'
),
array('return' => 'xsd:string'),
'urn:WSCMService',
'',
'',
'',
'Retorna o conteudo do campo informado de um anuncio de chave ID. Campos retornaveis: sender, date, title e content'
);