From ac443030f31ff05aa451c9ad4cd06328715ee7df Mon Sep 17 00:00:00 2001 From: l3l0 Date: Wed, 19 Dec 2012 22:39:17 +0100 Subject: [PATCH] Added missing xml configuration examples for validation constraints --- reference/constraints/All.rst | 16 ++++++++++++++++ reference/constraints/Choice.rst | 4 ++-- reference/constraints/Count.rst | 21 ++++++++++++++++++--- reference/constraints/Country.rst | 9 +++++++++ reference/constraints/Date.rst | 9 +++++++++ reference/constraints/DateTime.rst | 9 +++++++++ reference/constraints/False.rst | 11 +++++++++++ reference/constraints/Ip.rst | 9 +++++++++ reference/constraints/Language.rst | 9 +++++++++ reference/constraints/Length.rst | 2 +- reference/constraints/Locale.rst | 9 +++++++++ reference/constraints/Max.rst | 12 ++++++++++++ reference/constraints/Range.rst | 14 ++++++++++++++ reference/constraints/Regex.rst | 26 +++++++++++++++++++++++++- reference/constraints/Time.rst | 9 +++++++++ reference/constraints/Type.rst | 14 +++++++++++++- reference/constraints/Url.rst | 9 +++++++++ 17 files changed, 184 insertions(+), 8 deletions(-) diff --git a/reference/constraints/All.rst b/reference/constraints/All.rst index b7941006504..7859e574d26 100644 --- a/reference/constraints/All.rst +++ b/reference/constraints/All.rst @@ -51,6 +51,22 @@ entry in that array: protected $favoriteColors = array(); } + .. code-block:: xml + + + + + + + + + + Now, each entry in the ``favoriteColors`` array will be validated to not be blank and to be at least 5 characters long. diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index 907b301dcd0..e62f9924d9d 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -49,7 +49,7 @@ If your valid choice list is simple, you can pass them in directly via the .. code-block:: xml - +