Re: Re: [PEPr] -1 for XML::XML_RPC2
| From: | Alan Knowles | Date: | Tue, 17 May 2005 02:22:02 +0000 |
| Subject: | Re: Re: [PEPr] -1 for XML::XML_RPC2 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37690@lists.php.net to get a copy of this message | ||
This jumps out an shouts 'factory method here'...
'binarydata' => XML_RPC2::valueFactory('base64',$data);
you can have all your class's representing the objects, and dont have to
bother the user generally with their details..
Regards
alan
> more like:
> <?php
> $xmlrpc->someFunction(
> array(
> 'hi' => new XML_RPC2_Value_Struct(array(1, 2.0, 3)),
> 'time' => array('hours' => 12, 'minutes' => 30),
> 'binarydata' => new XML_RPC2_Value_Base64($data)
> ));
> ?>