root/tags/RELEASE_0_9_0B1/patForms/Renderer.php

Revision 320, 0.8 kB (checked in by schst, 3 years ago)

Parser now uses the element's id for the placeholder. Parser_patTemplateRenderer and Parser_SimpleRenderer now use the matching renderers as delegates (fixes bug #184 and #185). This commit may break some scripts, but the parser was labelled alpha before.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /**
3  * patForms renderer base class - extend this to create your own renderers.
4  *
5  * $Id$
6  *
7  * @access        protected
8  * @package        patForms
9  * @subpackage    Renderer
10  */
11
12 /**
13  * patForms renderer base class - extend this to create your own renderers.
14  *
15  * @access        protected
16  * @package        patForms
17  * @subpackage    Renderer
18  * @author        Sebastian Mordziol <argh@php-tools.net>
19  * @license        LGPL, see license.txt for details
20  * @link        http://www.php-tools.net
21  */
22 class patForms_Renderer
23 {
24    /**
25     * method called by patForms to retrieve the rendered form content.
26     *
27     * @access    public
28     * @param    object    &$patForms    Reference to the patForms object
29     * @param    array       Arguments for the renderer
30     */
31     function render(&$patForms, $args = array())
32     {
33         // your code
34     }
35 }
36 ?>
Note: See TracBrowser for help on using the browser.