function MECON_HTML_QuickForm($formName='', $method='post', $action='', $target='_self', $attributes=null)
{
parent::HTML_QuickForm($formName, $method, $action, $target, $attributes);
function MECON_HTML_QuickForm($formName='', $method='post', $action='', $target='_self', $attributes=null)
{
parent::HTML_QuickForm($formName, $method, $action, $target, $attributes);
$this->registerRule('fecha', 'function', 'validate', 'HTML_QuickForm_mdate');
$this->setRequiredNote('<FONT color="red">*</FONT> indica un campo obligatorio');
$this->setJsWarnings('Hay errores en el formulario:', 'Por favor corrÃjalos antes de continuar.');
$this->registerRule('fecha', 'function', 'validate', 'HTML_QuickForm_mdate');
$this->setRequiredNote('<FONT color="red">*</FONT> indica un campo obligatorio');
$this->setJsWarnings('Hay errores en el formulario:', 'Por favor corrÃjalos antes de continuar.');
}
function addRule($element, $message, $type, $format='', $validation='client', $reset = false, $force = false)
{
}
function addRule($element, $message, $type, $format='', $validation='client', $reset = false, $force = false)
{
{
parent::addGroupRule($group, $arg1, $type, $format, $howmany, $validation);
}
{
parent::addGroupRule($group, $arg1, $type, $format, $howmany, $validation);
}
- function toHtml() {
- $renderer =& new MECON_HTML_QuickForm_Renderer_Tabla($this->_rendererOpts);
- $this->accept($renderer);
- return $renderer->toHtml();
+ function toHtml()
+ {
+ $this->accept($this->renderer);
+ return $this->renderer->toHtml();
- function getRendererOpts($opts) {
- return $this->_rendererOpts;;
+ /**
+ * TODO aclarar que usar
+ * $FORM->renderer->updateAttributes()
+ *
+ * @deprecated
+ */
+ function getRendererOpts() {
+ return $this->renderer->getAttributes();