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_inbox.php

115 lines
2.6 KiB

<?php
/* For licensing terms, see /license.txt */
/**
* @package chamilo.webservices
*/
require_once __DIR__.'/cm_webservice_inbox.php';
require_once __DIR__.'/cm_soap.php';
/**
* Configures the WSCourse SOAP service
*/
$s = WSCMSoapServer::singleton();
$s->register(
'WSCMInbox.unreadMessage',
array(
'username' => 'xsd:string',
'password' => 'xsd:string',
),
array('return' => 'xsd:string'),
'urn:WSCMService',
'',
'',
'',
'Retorna a quantidade de mensagens nao lidas na caixa de entrada do usuario.'
);
$s->register(
'WSCMInbox.get_message_id',
array(
'username' => 'xsd:string',
'password' => 'xsd:string',
'from' => 'xsd:string',
'number_of_items' => 'xsd:string',
),
array('return' => 'xsd:string'),
'urn:WSCMService',
'',
'',
'',
'Retorna o ID das mensagens de entrada entre o intervalo de from até number_of_items.'
);
$s->register(
'WSCMInbox.get_message_data',
array(
'username' => 'xsd:string',
'password' => 'xsd:string',
'id' => 'xsd:string',
'field' => 'xsd:string',
),
array('return' => 'xsd:string'),
'urn:WSCMService',
'',
'',
'',
'Retorna o conteudo do campo informado em field da mensagem de entrada id. Os campos retornados sao: sender, title, date, status e content.'
);
$s->register(
'WSCMInbox.get_message_id_sent',
array(
'username' => 'xsd:string',
'password' => 'xsd:string',
'from' => 'xsd:string',
'number_of_items' => 'xsd:string',
),
array('return' => 'xsd:string'),
'urn:WSCMService',
'',
'',
'',
'Retorna o ID das mensagens de saida entre o intervalo de from até number_of_items.'
);
$s->register(
'WSCMInbox.get_message_data_sent',
array(
'username' => 'xsd:string',
'password' => 'xsd:string',
'id' => 'xsd:string',
'field' => 'xsd:string',
),
array('return' => 'xsd:string'),
'urn:WSCMService',
'',
'',
'',
'Retorna o conteudo do campo informado em field da mensagem de saida id. Os campos retornados sao: sender, title, date, status e content.'
);
$s->register(
'WSCMInbox.message_send',
array(
'username' => 'xsd:string',
'password' => 'xsd:string',
'receiver_user_id' => 'xsd:string',
'subject' => 'xsd:string',
'content' => 'xsd:string',
),
array('return' => 'xsd:string'),
'urn:WSCMService',
'',
'',
'',
'Envia uma mensagem via rede social. Retorna o id da mensagem enviada.'
);