1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
2 -------------------------------------------------------------------------------
5 -------------------------------------------------------------------------------
6 This file is part of meconlib.
8 meconlib is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your option)
13 meconlib is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License; if not,
18 write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 Boston, MA 02111-1307 USA
20 -------------------------------------------------------------------------------
21 Creado: mié jun 18 15:08:05 ART 2003
22 Autor: Leandro Lucarella <llucar@mecon.gov.ar>
23 -------------------------------------------------------------------------------
25 -----------------------------------------------------------------------------*/
27 require_once 'MECON/HTML/QuickFormSimple.php';
28 require_once 'MECON/HTML/QuickForm/Renderer/Tabla.php';
31 * QuickForm de uso general del MECON.
33 class MECON_HTML_QuickForm extends MECON_HTML_QuickFormSimple {
37 function MECON_HTML_QuickForm($formName='', $method='post', $action='', $target='_self', $attributes=null)
39 parent::MECON_HTML_QuickFormSimple($formName, $method, $action, $target, $attributes);
40 $this->renderer =& new MECON_HTML_QuickForm_Renderer_Tabla();
45 $this->accept($this->renderer);
46 return $this->renderer->toHtml();
50 * TODO aclarar que usar
51 * $FORM->renderer->updateAttributes()
55 function setRendererOpts($opts) {
56 $this->renderer->setAttributes($opts);
60 * TODO aclarar que usar
61 * $FORM->renderer->updateAttributes()
65 function getRendererOpts() {
66 return $this->renderer->getAttributes();
70 * TODO aclarar que usar
71 * $FORM->renderer->updateAttributes()
75 function updateRendererOpts($opts) {
76 $this->renderer->updateAttributes($opts);