Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
set_include_path(realpath(dirname(__FILE__) . '/../../../') . PATH_SEPARATOR . get_include_path());
3
/**
4
 * Point to a problem with the autodocumentation of servers which follows the specifications
5
 * in PHPCodeSniffer.
6
 *
7
 * PHP version 5
8
 *
9
 * @category  XML
10
 * @package   XML_RPC2
11
 * @author    Lars Olesen <lars@legestue.net>
12
 
13
 * @copyright 2007 Lars Olesen
14
 * @license   GPL http://www.opensource.org/licenses/gpl-license.php
15
 * @version   @package-version@
16
 * @link      http://pear.php.net/package/XML_RPC2
17
 */
18
require_once 'XML/RPC2/Server.php';
19
 
20
/**
21
 * The implementation
22
 *
23
 * @category  XML
24
 * @package   XML_RPC2
25
 * @author    Lars Olesen <lars@legestue.net>
26
 * @copyright 2007 Lars Olesen
27
 * @license   GPL http://www.opensource.org/licenses/gpl-license.php
28
 * @version   @package-version@
29
 * @link      http://pear.php.net/package/XML_RPC2
30
 */
31
class DocumentationServer {
32
 
33
    /**
34
     * returns something
35
     *
36
     * @param array   $something     A description
37
     * @param string  $another_thing A description of another thing
38
     * @param boolean $return        Whether to return nothing - server doesn't care though
39
     *
40
     * @return string An international string
41
     */
42
    public static function getSomething($something, $another_thing, $credentials) {
43
        return 'nothing interesting';
44
    }
45
 
46
}
47
 
48
$options = array(
49
    'prefix' => 'test.',
50
  //  'encoding' => 'ISO-8859-1'
51
  'encoding' => 'UTF-8'
52
);
53
 
54
$server = XML_RPC2_Server::create('DocumentationServer', $options);
55
$GLOBALS['HTTP_RAW_POST_DATA'] = '';
56
$server->handleCall();
57
?>