Skip to content

Commit bd1515b

Browse files
committed
Merge pull request symfony#1967 from WouterJ/patch-15
Changed normal links to special :php*: links
2 parents d59076f + d1838ee commit bd1515b

File tree

9 files changed

+16
-34
lines changed

9 files changed

+16
-34
lines changed

reference/constraints/Choice.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,5 @@ strict
279279
**type**: ``Boolean`` **default**: ``false``
280280

281281
If true, the validator will also check the type of the input value. Specifically,
282-
this value is passed to as the third argument to the PHP `in_array`_ method
283-
when checking to see if a value is in the valid choices array.
284-
285-
.. _`in_array`: http://php.net/manual/en/function.in-array.php
282+
this value is passed to as the third argument to the PHP :phpfunction:`in_array` method
283+
when checking to see if a value is in the valid choices array.

reference/constraints/Max.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,4 @@ invalidMessage
6969
**type**: ``string`` **default**: ``This value should be a valid number``
7070

7171
The message that will be shown if the underlying value is not a number (per
72-
the `is_numeric`_ PHP function).
73-
74-
.. _`is_numeric`: http://www.php.net/manual/en/function.is-numeric.php
72+
the :phpfunction:`is_numeric` PHP function).

reference/constraints/MaxLength.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ charset
7676

7777
**type**: ``charset`` **default**: ``UTF-8``
7878

79-
If the PHP extension "mbstring" is installed, then the PHP function `mb_strlen`_
79+
If the PHP extension "mbstring" is installed, then the PHP function :phpfunction:`mb_strlen`
8080
will be used to calculate the length of the string. The value of the ``charset``
81-
option is passed as the second argument to that function.
82-
83-
.. _`mb_strlen`: http://php.net/manual/en/function.mb-strlen.php
81+
option is passed as the second argument to that function.

reference/constraints/Min.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,4 @@ invalidMessage
6969
**type**: ``string`` **default**: ``This value should be a valid number``
7070

7171
The message that will be shown if the underlying value is not a number (per
72-
the `is_numeric`_ PHP function).
73-
74-
.. _`is_numeric`: http://www.php.net/manual/en/function.is-numeric.php
72+
the :phpfunction:`is_numeric` PHP function).

reference/constraints/MinLength.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ charset
8080

8181
**type**: ``charset`` **default**: ``UTF-8``
8282

83-
If the PHP extension "mbstring" is installed, then the PHP function `mb_strlen`_
83+
If the PHP extension "mbstring" is installed, then the PHP function :phpfunction:`mb_strlen`
8484
will be used to calculate the length of the string. The value of the ``charset``
85-
option is passed as the second argument to that function.
86-
87-
.. _`mb_strlen`: http://php.net/manual/en/function.mb-strlen.php
85+
option is passed as the second argument to that function.

reference/constraints/Regex.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pattern
9595

9696
This required option is the regular expression pattern that the input will
9797
be matched against. By default, this validator will fail if the input string
98-
does *not* match this regular expression (via the `preg_match`_ PHP function).
98+
does *not* match this regular expression (via the :phpfunction:`preg_match` PHP function).
9999
However, if `match`_ is set to false, then validation will fail if the input
100100
string *does* match this pattern.
101101

@@ -114,6 +114,4 @@ message
114114

115115
**type**: ``string`` **default**: ``This value is not valid``
116116

117-
This is the message that will be shown if this validator fails.
118-
119-
.. _`preg_match`: http://php.net/manual/en/function.preg-match.php
117+
This is the message that will be shown if this validator fails.

reference/forms/types/country.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The "value" for each country is the two-letter country code.
1212

1313
.. note::
1414

15-
The locale of your user is guessed using `Locale::getDefault()`_
15+
The locale of your user is guessed using :phpmethod:`Locale::getDefault()`
1616

1717
Unlike the ``choice`` type, you don't need to specify a ``choices`` or
1818
``choice_list`` option as the field type automatically uses all of the countries
@@ -57,6 +57,4 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
5757

5858
.. include:: /reference/forms/types/options/label.rst.inc
5959

60-
.. include:: /reference/forms/types/options/read_only.rst.inc
61-
62-
.. _`Locale::getDefault()`: http://php.net/manual/en/locale.getdefault.php
60+
.. include:: /reference/forms/types/options/read_only.rst.inc

reference/forms/types/language.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The "value" for each language is the *Unicode language identifier*
1313

1414
.. note::
1515

16-
The locale of your user is guessed using `Locale::getDefault()`_
16+
The locale of your user is guessed using :phpmethod:`Locale::getDefault()`
1717

1818
Unlike the ``choice`` type, you don't need to specify a ``choices`` or
1919
``choice_list`` option as the field type automatically uses a large list
@@ -58,6 +58,4 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
5858

5959
.. include:: /reference/forms/types/options/label.rst.inc
6060

61-
.. include:: /reference/forms/types/options/read_only.rst.inc
62-
63-
.. _`Locale::getDefault()`: http://php.net/manual/en/locale.getdefault.php
61+
.. include:: /reference/forms/types/options/read_only.rst.inc

reference/forms/types/locale.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ the ISO3166 *country* code (e.g. ``fr_FR`` for French/France).
1414

1515
.. note::
1616

17-
The locale of your user is guessed using `Locale::getDefault()`_
17+
The locale of your user is guessed using :phpmethod:`Locale::getDefault()`
1818

1919
Unlike the ``choice`` type, you don't need to specify a ``choices`` or
2020
``choice_list`` option as the field type automatically uses a large list
@@ -59,6 +59,4 @@ These options inherit from the :doc:`field</reference/forms/types/field>` type:
5959

6060
.. include:: /reference/forms/types/options/label.rst.inc
6161

62-
.. include:: /reference/forms/types/options/read_only.rst.inc
63-
64-
.. _`Locale::getDefault()`: http://php.net/manual/en/locale.getdefault.php
62+
.. include:: /reference/forms/types/options/read_only.rst.inc

0 commit comments

Comments
 (0)