Author: fabien
Date: 2010-04-01 16:10:24 +0200 (Thu, 01 Apr 2010)
New Revision: 28959
Modified:
branches/1.3/lib/validator/sfValidatorDate.class.php
branches/1.4/lib/validator/sfValidatorDate.class.php
Log:
[1.3, 1.4] added a note about the date_format option of sfValidatorDate (closes
#8316)
Modified: branches/1.3/lib/validator/sfValidatorDate.class.php
===================================================================
--- branches/1.3/lib/validator/sfValidatorDate.class.php 2010-04-01
13:56:17 UTC (rev 28958)
+++ branches/1.3/lib/validator/sfValidatorDate.class.php 2010-04-01
14:10:24 UTC (rev 28959)
@@ -24,6 +24,8 @@
* Available options:
*
* * date_format: A regular expression that dates must match
+ * Note that the regular expression must use
named subpatterns like (?P<year>)
+ * Working example:
~(?P<day>\d{2})/(?P<month>\d{2})/(?P<year>\d{4})~
* * with_time: true if the validator must return a time,
false otherwise
* * date_output: The format to use when returning a date
(default to Y-m-d)
* * datetime_output: The format to use when returning a date with
time (default to Y-m-d H:i:s)
Modified: branches/1.4/lib/validator/sfValidatorDate.class.php
===================================================================
--- branches/1.4/lib/validator/sfValidatorDate.class.php 2010-04-01
13:56:17 UTC (rev 28958)
+++ branches/1.4/lib/validator/sfValidatorDate.class.php 2010-04-01
14:10:24 UTC (rev 28959)
@@ -24,6 +24,8 @@
* Available options:
*
* * date_format: A regular expression that dates must match
+ * Note that the regular expression must use
named subpatterns like (?P<year>)
+ * Working example:
~(?P<day>\d{2})/(?P<month>\d{2})/(?P<year>\d{4})~
* * with_time: true if the validator must return a time,
false otherwise
* * date_output: The format to use when returning a date
(default to Y-m-d)
* * datetime_output: The format to use when returning a date with
time (default to Y-m-d H:i:s)
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.