Re: Quickform Renderer
| From: | Bertrand Mansion | Date: | Fri, 04 Apr 2003 13:03:16 +0000 |
| Subject: | Re: Quickform Renderer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14888@lists.php.net to get a copy of this message | ||
<jeroen@terena.nl> wrote :
> Hi,
>
> I was just wondering how the development on the Quickform Renderer is
> going and if I can test anything yet?
There are already a few renderers available in CVS. At the moment, you will
need to checkout the cvs version if you want to test them. Let me know if
this is ok with you.
The renderers available are the following:
- Default :
This renderer uses the same kind of rendering as the one that was available
in previous QuickForm versions. This way, backward compatibility is ok.
- Array :
This is actually the renderer that will output an array representation of
the QuickForm content. It is similar to the toArray() method and is actually
called when toArray() is called. The only difference with previous toArray()
method is that every element gets a numeric index in the array. Previous
version was a bit harder to parse.
- ITX :
This renderer uses the HTML_Template_ITX package. It works by looping
through a 'qf_main_loop' using styles defined in other blocks. There is a
possibility to attach an element to a style block.
I have also made an ITX renderer that is more low level than the looping one
but I am still testing it. It works differently: it uses placeholders for
each elements in the form. Then, when it finds a placeholder, it replaces it
by a parsed style block. It allows for very weird presentation, forms with
horizontal layout, forms alternating comments and widgets...
I haven't committed it yet but I can send it to you along with an example if
you want. I am waiting for Alexey Borzov to give me his opinion as he is the
one who wrote the first ITX renderer.
If you have some time to test it, let me know. I'll send to you a few
examples. I would be happy to know your opinion about both ITX
implementations.
Bertrand Mansion
Mamasam