Re: proposal for extending XML/RPC.php

From: Date: Fri, 12 Mar 2004 15:42:31 +0000
Subject: Re: proposal for extending XML/RPC.php
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26339@lists.php.net to get a copy of this message
> > I would have a confirmation that the XML_RPC_Client->toHTML() method > > name would have sufficient meaning ? > The method name is misleading, because toHTML() will not return a HTML > representation of the whole XML-RPC client, but only of the output > of discover(). Personally I think we do not need a HTML method at all > and we should expect users of the client to write a few lines of code > themselves for debugging purposes. AH, that's what you get for not having followed the entire discussion. Yes, if this is just a dump/debug output, then a toHTML() function would be misleading. I'd say go with the assoc-array output, and have the programmer write some code of himself around it :) If you can't resist makgin the code print out HTML, call it something like discoverHTML() and have its output be valid (X)HTML aswell :) Cipri

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