1 <?php
2 /**
3 * Import the basic XaoRoot class for inheritance.
4 *
5 * This class utilises a bundled library of XMLRPC functions made available
6 * from http://keithdevens.com/software/xmlrpc/
7 *
8 * @import XMLRPC
9 */
10 include_once "ext/com.keithdevens/xmlrpc.php";
11
12 /**
13 * Import the basic XaoRoot class for inheritance.
14 *
15 * This class is based on XaoRoot and hence supports all of it's functionality,
16 * including it's ability to be consumed by another DomDoc based object.
17 *
18 * @import XaoRoot
19 */
20 include_once "XAO_XaoRoot.php";
21
22 /**
23 * Remote procedure call responder for XML RPC.
24 *
25 * WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING
26 * DO NOT ATTEMPT TO USE THIS CLASS. IT IS A WORK IN PROGRESS. IT IS VAPOURWARE.
27 * IT PROBABLY HAS NOT EVEN BEEN THROUGH THE INTERPRETER/PARSER YET. IT WILL NOT
28 * WORK. THE DESIGN WILL CHANGE. THERE'S STILL MUCH WORK TO BE DONE. LEAVE IT.
29 * This class will provide a controller which accepts remote requests and
30 * routs them to user-defined class/methods. It does so by importing and
31 * instantiating the user classes at runtime. The user doesn't need to how
32 * XMLRPC works. All they need to do is drop their classes into a directory
33 * searched by this class and name the file the with the same name as the class
34 * with .php appended to the end of the filename.
35 * If the requested procedure (method) does not require any params, then a GET
36 * variable can be used - very handy for debugging. Of course, this is not part
37 * of the RPC spec, but it has certain conveniences. See the RPC tutorials for
38 * more usage details.
39 *
40 * @author Terence Kearns
41 * @version 0.2
42 * @copyright Terence Kearns 2003
43 * @license LGPL
44 * @package XAO
45 * @link http://xao-php.sourceforge.net
46 */
47 class RpcController extends XaoRoot {
48
49 var $strPost;
50 var $strReq;
51
52 var $uriBasePath = "rpcClasses/";
53
54 function RpcController($strPost,$arrGet) {
55 $this->strPost = $strPost;
56 $this->strReq = $arrGet["rpc"];
57 }
58 }
59
60 ?>