3 * Some dummy functions to test XML-RPC with
7 * The xxxx_RPC_OK must exist and return TRUE for the remote call to be
10 * @return bool True if the related function can be executed remotely
12 function mnet_concatenate_strings_RPC_OK() {
16 function mnet_publishes() {
17 $servicelist = array();
18 $service['name'] = 'sso';
19 $function['name'] = 'mnet_concatenate_strings';
22 $argument['type'] = 'string';
23 $argument['default'] = '';
24 $function['arguments'][] = $argument;
27 $argument['type'] = 'string';
28 $argument['default'] = '';
29 $function['arguments'][] = $argument;
32 $argument['type'] = 'string';
33 $argument['default'] = '';
34 $function['arguments'][] = $argument;
36 $function['description'] = get_string($function['name'], 'mnet');
37 $service['functions'][] = $function;
38 $servicelist[] = $service;
42 //header('Content-type: text/plain');
43 //var_dump(mnet_publishes());
46 * Concatenate (up to) 3 strings and return the result
48 * @param string $string1 Some string
49 * @param string $string2 Some string
50 * @param string $string3 Some string
51 * @return string The parameter strings, concatenated together
53 function mnet_concatenate_strings($string1='', $string2='', $string3='') {
54 return $string1.$string2.$string3;
58 function testClass() {
59 $this->first
= 'last';
60 $this->last
= 'first';
63 function augment_first($newval) {
64 $this->first
= $this->first
.$newval;
68 function augment_first_RPC_OK() {
72 function mnet_concatenate_strings_RPC_OK() {
75 function mnet_concatenate_strings($string1='', $string2='', $string3='') {
76 return $string1.$string2.$string3;