Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Filter_Input
-
Labels:None
-
Fix Version Priority:Nice to Have
Description
Would it be possible to use a string which "match" the class constant instead of the class constant it self which need a require_one before we can use it.
The string can be evaluate later on with the function constant()
This is more readable than an integer key.
// Use this $validators = array( 'month' => array('Int', array('Between', 1, 12), 'messages' => array ('Zend_Validate_Between::NOT_BETWEEN_STRICT' => 'doit ĂȘtre compris entre 1 et 12') ) ); // instead of $validators = array( 'month' => array('Int', array('Between', 1, 12), 'messages' => array (Zend_Validate_Between::NOT_BETWEEN_STRICT => 'doit ĂȘtre compris entre 1 et 12') ) );
Assigned to Bill