PageRenderTime 102ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 59ms app.codeStats 0ms

/examples/jsonrpc/public/services/EchoService.php

http://pyjamas.googlecode.com/
PHP | 15 lines | 10 code | 5 blank | 0 comment | 0 complexity | 9234b0b37dda33a4609018e11291d305 MD5 | raw file
 1<?
 2include_once("phpolait/phpolait.php");
 3
 4class EchoService {
 5    function myecho($msg) { return $msg; }
 6
 7    function myreverse($msg) { return strrev($msg); }
 8
 9    function myuppercase($msg) { return strtoupper($msg); }
10
11    function mylowercase($msg) { return strtolower($msg); }
12}
13
14$server = new JSONRpcServer(new EchoService(), array("echo"=>"myecho", "reverse"=>"myreverse", "uppercase"=>"myuppercase", "lowercase"=>"mylowercase"));
15?>