[PATCH] XML_RPC Server.php. Support object instances as 'function' parameter

From: Date: Sun, 14 Aug 2005 20:23:24 +0000
Subject: [PATCH] XML_RPC Server.php. Support object instances as 'function' parameter
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39354@lists.php.net to get a copy of this message
I patched the XML_RPC Server.php to add the possiblity to use object instances in the 'function' parameter of XML_RPC_Server() dispatch map. So it is possible to setup database connection,etc. <snipp> $myObj = new myObject($db); $server = new XML_RPC_Server(array('example.getFoo' => array('function' => array($myObj, 'getFoo')) )); </snipp> the full example source is available at: http://sqlbackup.net/pear/rpcServer.phps greetings david

« previous php.pear.dev (#39354) next »