forked from symfony-japan-old/symfony-docs-ja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[reference/constraints/]MaxLength.rst翻訳 [reference/constraints/]MinLength.rst翻訳
- Loading branch information
Showing
12 changed files
with
139 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ Date | |
- Date: ~ | ||
オプション | ||
------- | ||
---------- | ||
|
||
* ``message``: 検証に失敗した場合のエラーメッセージ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ DateTime | |
- DateTime: ~ | ||
オプション | ||
------- | ||
---------- | ||
|
||
* ``message``: 検証に失敗した場合のエラーメッセージ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ False | |
- False: ~ | ||
オプション | ||
------- | ||
---------- | ||
|
||
* ``message``: 検証に失敗した場合のエラーメッセージ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,65 @@ | ||
このページの翻訳はまだ行われていません。 | ||
======================================== | ||
.. 2011/07/23 yanchi 57b7d4750ae7e2a2382ac0ad44fa82d4bfc7765e | ||
翻訳にご協力くださる方は | ||
`github/symfony-japan <https://github.com/symfony-japan/symfony-docs-ja/wiki>`_ まで! | ||
MaxLength | ||
========= | ||
|
||
値の文字列の長さが、与えられた制限値以下であることを検証します。 | ||
|
||
+-----------------------+----------------------------------------------------------------+ | ||
| 検証 | 文字列 | | ||
+-----------------------+----------------------------------------------------------------+ | ||
| オプション | - ``limit`` | | ||
| | - ``message`` | | ||
| | - ``charset`` | | ||
+-----------------------+----------------------------------------------------------------+ | ||
| デフォルト オプション | ``limit`` | | ||
+-----------------------+----------------------------------------------------------------+ | ||
| クラス | :class:`Symfony\\Component\\Validator\\Constraints\\MaxLength` | | ||
+-----------------------+----------------------------------------------------------------+ | ||
|
||
オプション | ||
---------- | ||
|
||
* ``limit`` (**デフォルト**, 必須) [タイプ: 整数値] | ||
これは文字列の最大長です。 もし10に設定された場合、文字列は長さが | ||
10文字以内でなければなりません。 | ||
|
||
* ``message`` [タイプ: 文字列, デフォルト: ``This value is too long. It should have {{ limit }} characters or less``] | ||
検証に失敗した場合のエラーメッセージ | ||
|
||
基本的な使い方 | ||
-------------- | ||
|
||
.. configuration-block:: | ||
|
||
.. code-block:: yaml | ||
# src/Acme/HelloBundle/Resources/config/validation.yml | ||
Acme\HelloBundle\Blog: | ||
properties: | ||
summary: | ||
- MaxLength: 100 | ||
.. code-block:: xml | ||
<!-- src/Acme/HelloBundle/Resources/config/validation.xml --> | ||
<class name="Acme\HelloBundle\Blog"> | ||
<property name="summary"> | ||
<constraint name="MaxLength"> | ||
<value>100</value> | ||
</constraint> | ||
</property> | ||
</class> | ||
.. code-block:: php-annotations | ||
// src/Acme/HelloBundle/Blog.php | ||
use Symfony\Component\Validator\Constraints as Assert; | ||
class Blog | ||
{ | ||
/** | ||
* @Assert\MaxLength(100) | ||
*/ | ||
protected $summary; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ Min | |
- Min: 1 | ||
オプション | ||
------- | ||
---------- | ||
|
||
* ``limit`` (**デフォルト**, 必須): 制限値 | ||
* ``message``: 検証に失敗した場合のエラーメッセージ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,65 @@ | ||
このページの翻訳はまだ行われていません。 | ||
======================================== | ||
.. 2011/07/24 yanchi 57b7d4750ae7e2a2382ac0ad44fa82d4bfc7765e | ||
翻訳にご協力くださる方は | ||
`github/symfony-japan <https://github.com/symfony-japan/symfony-docs-ja/wiki>`_ まで! | ||
MinLength | ||
========= | ||
|
||
値の文字列の長さが、与えられた制限値以上であることを検証します。 | ||
|
||
+-----------------------+----------------------------------------------------------------+ | ||
| 検証 | 文字列 | | ||
+-----------------------+----------------------------------------------------------------+ | ||
| オプション | - ``limit`` | | ||
| | - ``message`` | | ||
| | - ``charset`` | | ||
+-----------------------+----------------------------------------------------------------+ | ||
| デフォルト オプション | ``limit`` | | ||
+-----------------------+----------------------------------------------------------------+ | ||
| クラス | :class:`Symfony\\Component\\Validator\\Constraints\\MinLength` | | ||
+-----------------------+----------------------------------------------------------------+ | ||
|
||
オプション | ||
---------- | ||
|
||
* ``limit`` (**デフォルト**, 必須) [タイプ: 整数値] | ||
これは文字列の最小長です。 もし3に設定された場合、文字列は長さが | ||
3文字以上でなければなりません。 | ||
|
||
* ``message`` [タイプ: 文字列, デフォルト: ``This value is too short. It should have {{ limit }} characters or more``] | ||
検証に失敗した場合のエラーメッセージ | ||
|
||
基本的な使い方 | ||
-------------- | ||
|
||
.. configuration-block:: | ||
|
||
.. code-block:: yaml | ||
# src/Acme/HelloBundle/Resources/config/validation.yml | ||
Acme\HelloBundle\Author: | ||
properties: | ||
firstName: | ||
- MinLength: 3 | ||
.. code-block:: xml | ||
<!-- src/Acme/HelloBundle/Resources/config/validation.xml --> | ||
<class name="Acme\HelloBundle\Author"> | ||
<property name="firstName"> | ||
<constraint name="MinLength"> | ||
<value>3</value> | ||
</constraint> | ||
</property> | ||
</class> | ||
.. code-block:: php-annotations | ||
// src/Acme/HelloBundle/Author.php | ||
use Symfony\Component\Validator\Constraints as Assert; | ||
class Author | ||
{ | ||
/** | ||
* @Assert\MinLength(3) | ||
*/ | ||
protected $firstName; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ NotNull | |
- NotNull: ~ | ||
オプション | ||
------- | ||
---------- | ||
|
||
* ``message``: 検証に失敗した場合のエラーメッセージ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters