===== RpcPhp ===== qooxdoo RPC server in PHP (4.3-5.3) Authors: * Derrell Lipman (derrell) * Christian Boulanger (cboulanger) This is the object-oriented rewrite of the PHP JSON-RPC server for PHP. It should be 100% backward-compatible to the existing server script. If not, please file a bug in the qooxdoo bugzilla. How it works: It receives a service name in dot-separated path format and expect to find the class containing the service in a file of the service name (with dots converted to slashes and ".php" appended). If the service name is "foo.bar.Baz", the class can be named "class_Baz" or "class_foo_bar_Baz". The name of the service method is prefixed by "method_", so "doFoo" becomes "method_doFoo()". Usage: require "path/to/services/server/JsonRpcServer.php"; $server = new JsonRpcServer; $server->start(); You can also use the index.php provided in this package. The service classes are placed in the "class/" subfolder. You can also choose a different location for the service classes by defining the "servicePathPrefix" in the global_settings.php file (if you use it) or elsewhere in your code. Make sure to include a trailing slash. The server is extremely flexible, you can subclass the JsonRpcServer and finetune almost every aspect of its behavior by overriding the different methods. Also, the class uses the behavior design pattern by delegation of accessibility and error behaviors to separate objects. As an example for the subclassing of the server, a PostRpcServer class has been included which can be used for testing purposes. This class transforms GET and POST requests into jsonrpc requests. This can serve as an example how to write other servers on top of the jsonrpc server (for example, using XML-RPC, etc.). For more information see * http://qooxdoo.org/documentation/RPC * http://qooxdoo.org/documentation/RPC_PHP PHP version info: Version 1.2 supports PHP versions 4.3 up to 5.3, which sometimes results in wierd hybrid coding style, and can only be achieved by suppressing deprecation messages.