Re: proposal for extending XML/RPC.php
| From: | Cipriano Groenendal | Date: | Fri, 12 Mar 2004 12:07:59 +0000 |
| Subject: | Re: proposal for extending XML/RPC.php | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-26335@lists.php.net to get a copy of this message | ||
> > Please do not use HTML markup in PEAR packages: This will be a
> > problem, if one wants to use XML_RPC in applications that are not
> > built with HTML (like command line or Gtk applications) or that have
> > to following strict style guidelines, which e.g. do not allow grey
> > backgrounds.
> all the output that discover() will made must be in plain text ?
> If is it the case can I had a parameter to switch between html output and
> plain text output as I currently use this from a browser ?
>
> I used the background style in order to gain in readeability between the
> different signature, I will try to find another way for this.
Your package shouldn't output anything at all, if at all possible. Imagine
this running from an included file, and no longer being able to send
headers.
A better solution would be to return the text in whichever format you want.
IE: A toHTML() function to return HTML would be fine, since many other
classes also work this way :)
Cipri