[dev] Form.php change

Marko Djukic marko at oblo.com
Wed Mar 26 15:48:08 PST 2003


anyone have comments/objections to this change in the Form.php (a bit raw at the
moment, but gives an idea):
- gets rid of the eval in _useTypes() and the function itself
- doesn't set up *all* the variable types, only the ones that are needed and
when needed
- gets rid of the need to manually keep track of what var types there are at the
end of the file
- ... helps out eventually with ulaform

what needs to be changed in the scripts that use Horde_Form is the addVariable()
call to something like:
   $this->addVariable(_("What is your name"), 'var_name', 'text', true);
or for enum (or var types with parameters)
   $values = array('foo', 'bar');
   $this->addVariable(_("What is your name"), 'var_name', 'enum', true, false,
null, array($values);

marko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Form.php.patch
Type: text/diff
Size: 2713 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20030326/a4fd8fd1/Form.php.bin


More information about the dev mailing list