php:xmlrpc server methods inside my class?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • glin@tollnz.co.nz

    php:xmlrpc server methods inside my class?

    Hi I have been researching on the net and I cannot find out anything
    that mentions about if the php xmlrpc server methods can be put inside
    of a class. And the javascript client can call the methods.

    like
    class Server
    {
    var $functionMap;

    function methodA()
    {
    return new xmlrpcresp(xmlr pc_encode(1));
    }

    function Server()
    {
    return new xmlrpc_server($ this->functionMap) ;
    }
    }

    $server = new Server();

    Thanks

Working...