Improvements and fixes to HTMLForm:
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 10 Apr 2010 12:03:30 +0000 (12:03 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 10 Apr 2010 12:03:30 +0000 (12:03 +0000)
commit317836768b5c635032ffe12da00fb22e69038735
treeb51ad10a309eb4d074cb783f863ef086c0f830f7
parent96a591f23939493f2fde4703da632f9f06db4df9
Improvements and fixes to HTMLForm:
* allow css classes to be specified in form descriptors
* Don't overwrite $field['name'] if it's set
* Allow IDs on hidden fields
* Enforce 'required' validation on Text fields
* Fix type validation on Int fields to correctly handle numbers larger than PHP_MAX_INT or with leading zeroes (eg phone numbers on 32 bit systems)
* Fix weak-typing error in MultiSelect field
* Formatting and doc fixes
includes/HTMLForm.php