Author: fabien
Date: 2010-04-01 16:13:52 +0200 (Thu, 01 Apr 2010)
New Revision: 28960

Modified:
   doc/branches/1.4/forms/en/B-Validators.txt
   doc/branches/1.4/gentle-introduction/en/C-Validators.markdown
Log:
[doc] [1.4] added a note about the date_format option of sfValidatorDate (refs 
#8316)

Modified: doc/branches/1.4/forms/en/B-Validators.txt
===================================================================
--- doc/branches/1.4/forms/en/B-Validators.txt  2010-04-01 14:10:24 UTC (rev 
28959)
+++ doc/branches/1.4/forms/en/B-Validators.txt  2010-04-01 14:13:52 UTC (rev 
28960)
@@ -339,7 +339,8 @@
 
  * an array composed of the following keys: `year`, `month`, `day`, `hour`,
    `minute`, and `second`
- * a string matching the `date_format` regular expression if provided
+ * a string matching the `date_format` regular expression if provided (for
+   instance `~(?P<day>\d{2})/(?P<month>\d{2})/(?P<year>\d{4})~`)
  * a string that can be parsed by the `strtotime()` PHP function
  * an integer representing a timestamp
 
@@ -348,7 +349,7 @@
 
 | Option                    | Error        | Description
 | ------------------------- | ------------ | -----------
-| `date_format`             | `bad_format` | A regular expression that dates 
must match
+| `date_format`             | `bad_format` | A regular expression that dates 
must match; note that the regular expression must use named subpatterns like 
`(?P<year>)`
 | `with_time`               | n/a          | `true` if the validator must 
return a time, `false` otherwise
 | `date_output`             | n/a          | The format to use when returning 
a date (default to `Y-m-d`)
 | `datetime_output`         | n/a          | The format to use when returning 
a date with time (default to `Y-m-d H:i:s`)

Modified: doc/branches/1.4/gentle-introduction/en/C-Validators.markdown
===================================================================
--- doc/branches/1.4/gentle-introduction/en/C-Validators.markdown       
2010-04-01 14:10:24 UTC (rev 28959)
+++ doc/branches/1.4/gentle-introduction/en/C-Validators.markdown       
2010-04-01 14:13:52 UTC (rev 28960)
@@ -339,7 +339,8 @@
 
  * an array composed of the following keys: `year`, `month`, `day`, `hour`,
    `minute`, and `second`
- * a string matching the `date_format` regular expression if provided
+ * a string matching the `date_format` regular expression if provided (for
+   instance `~(?P<day>\d{2})/(?P<month>\d{2})/(?P<year>\d{4})~`)
  * a string that can be parsed by the `strtotime()` PHP function
  * an integer representing a timestamp
 
@@ -348,7 +349,7 @@
 
 | Option                    | Error        | Description
 | ------------------------- | ------------ | -----------
-| `date_format`             | `bad_format` | A regular expression that dates 
must match
+| `date_format`             | `bad_format` | A regular expression that dates 
must match; note that the regular expression must use named subpatterns like 
`(?P<year>)`
 | `with_time`               | n/a          | `true` if the validator must 
return a time, `false` otherwise
 | `date_output`             | n/a          | The format to use when returning 
a date (default to `Y-m-d`)
 | `datetime_output`         | n/a          | 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.

Reply via email to