From 1cbcaae9016a8a8c6ab4acf605bd77ddfa38c577 Mon Sep 17 00:00:00 2001 From: Slava Fomin Date: Mon, 24 Feb 2014 10:20:12 +0300 Subject: [PATCH 1/3] Added documentation for missing ctype extension --- reference/constraints/Type.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reference/constraints/Type.rst b/reference/constraints/Type.rst index 7a48344b37a..c01649d4785 100644 --- a/reference/constraints/Type.rst +++ b/reference/constraints/Type.rst @@ -112,6 +112,23 @@ as determined by PHP's ``is_`` functions. * `scalar `_ * `string `_ +Also, you can use ``ctype_`` functions from corresponding `built-in PHP extension `_. +Consider `a list of ctype functions `_: + +* `alnum `_ +* `alpha `_ +* `cntrl `_ +* `digit `_ +* `graph `_ +* `lower `_ +* `print `_ +* `punct `_ +* `space `_ +* `upper `_ +* `xdigit `_ + +Make sure that proper `locale `_ is set before using one of those. + message ~~~~~~~ From ac4c84feb8ebd4068d9a48fb1d8e3bb7b7fd564a Mon Sep 17 00:00:00 2001 From: Slava Fomin Date: Tue, 11 Mar 2014 13:36:50 +0300 Subject: [PATCH 2/3] Fixed spelling Fixed spelling. --- reference/constraints/Type.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/constraints/Type.rst b/reference/constraints/Type.rst index c01649d4785..af38cc140f2 100644 --- a/reference/constraints/Type.rst +++ b/reference/constraints/Type.rst @@ -127,7 +127,7 @@ Consider `a list of ctype functions `_: * `upper `_ * `xdigit `_ -Make sure that proper `locale `_ is set before using one of those. +Make sure that the proper `locale `_ is set before using one of these. message ~~~~~~~ From 8a4843482977887fa147a07b047321e4201f87dd Mon Sep 17 00:00:00 2001 From: Slava Fomin Date: Tue, 11 Mar 2014 13:47:00 +0300 Subject: [PATCH 3/3] Updated references to PHP functions Updated references to PHP functions using syntax suggested by @WouterJ (`:phpfunction:` role). --- reference/constraints/Type.rst | 56 +++++++++++++++++----------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/reference/constraints/Type.rst b/reference/constraints/Type.rst index af38cc140f2..1980b083c38 100644 --- a/reference/constraints/Type.rst +++ b/reference/constraints/Type.rst @@ -96,38 +96,38 @@ type This required option is the fully qualified class name or one of the PHP datatypes as determined by PHP's ``is_`` functions. -* `array `_ -* `bool `_ -* `callable `_ -* `float `_ -* `double `_ -* `int `_ -* `integer `_ -* `long `_ -* `null `_ -* `numeric `_ -* `object `_ -* `real `_ -* `resource `_ -* `scalar `_ -* `string `_ +* :phpfunction:`array ` +* :phpfunction:`bool ` +* :phpfunction:`callable ` +* :phpfunction:`float ` +* :phpfunction:`double ` +* :phpfunction:`int ` +* :phpfunction:`integer ` +* :phpfunction:`long ` +* :phpfunction:`null ` +* :phpfunction:`numeric ` +* :phpfunction:`object ` +* :phpfunction:`real ` +* :phpfunction:`resource ` +* :phpfunction:`scalar ` +* :phpfunction:`string ` Also, you can use ``ctype_`` functions from corresponding `built-in PHP extension `_. Consider `a list of ctype functions `_: -* `alnum `_ -* `alpha `_ -* `cntrl `_ -* `digit `_ -* `graph `_ -* `lower `_ -* `print `_ -* `punct `_ -* `space `_ -* `upper `_ -* `xdigit `_ - -Make sure that the proper `locale `_ is set before using one of these. +* :phpfunction:`alnum ` +* :phpfunction:`alpha ` +* :phpfunction:`cntrl ` +* :phpfunction:`digit ` +* :phpfunction:`graph ` +* :phpfunction:`lower ` +* :phpfunction:`print ` +* :phpfunction:`punct ` +* :phpfunction:`space ` +* :phpfunction:`upper ` +* :phpfunction:`xdigit ` + +Make sure that the proper :phpfunction:`locale ` is set before using one of these. message ~~~~~~~