Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.3.2

Request #4728 Range rule update
Submitted: 2005-07-02 07:42 UTC
From: jausions Assigned: avb
Status: Closed Package: HTML_QuickForm2
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 0.2.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 14 + 27 = ?

 
 [2005-07-02 07:42 UTC] jausions
Description: ------------ Here's an update to the "range" rules: - Apparently not 100% UNIX EOL - Added "minvalue", "maxvalue" and "rangevalue" - Updated header to match new PEAR CS docblock headers I saw request #3261, but this is so convenient and add little weight to the package, that is certainly worthwhile to put in place. http://www.11abacus.com/dev/pear/HTML/QuickForm/Range.phps http://www.11abacus.com/dev/pear/HTML/QuickForm/HTML_QuickForm_Rule_Range.jausions.patch -Philippe

Comments

 [2006-06-08 14:35 UTC] avb (Alexey Borzov)
Moving feature requests to HTML_QuickForm2.
 [2007-07-17 19:21 UTC] avb (Alexey Borzov)
A new incarnation of Compare rule was just commited, allowing the equivalents of 'minvalue' and 'maxvalue': $field1->addRule('gte', 'Should be no less than 5', 5); $filed2->addRule('lte', 'Should be no more than 10', 10); equivalent of 'rangevalue' can be achieved by chaining: $field->addRule('gte', 'Should be between 5 and 10', 5) ->and_($field->createRule('lte', '', 10)); Thanks for the patch, sorry it wasn't used.