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