Skip to content

Commit fbe5b68

Browse files
authored
Merge pull request #8016 from cakephp/fix
Fix up some common signatures. (es, fr, ja, pt)
2 parents 937fb0e + d0452a1 commit fbe5b68

File tree

11 files changed

+28
-28
lines changed

11 files changed

+28
-28
lines changed

es/orm/deleting-data.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Deleting Data
66
.. php:class:: Table
77
:noindex:
88

9-
.. php:method:: delete(Entity $entity, $options = [])
9+
.. php:method:: delete(EntityInterface $entity, array $options = [])
1010
1111
.. note::
1212
La documentación no es compatible actualmente con el idioma español en esta página.

fr/orm/deleting-data.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Supprimer des Données
66
.. php:class:: Table
77
:noindex:
88

9-
.. php:method:: delete(Entity $entity, $options = [])
9+
.. php:method:: delete(EntityInterface $entity, array $options = [])
1010
1111
Une fois que vous avez chargé une entity, vous pouvez la supprimer en appelant
1212
la méthode delete de la table d'origine::
@@ -70,7 +70,7 @@ efficace ou utile. Dans ces cas, il est plus performant d'utiliser une
7070
suppression en masse pour retirer plusieurs lignes en une fois::
7171

7272
// Supprime tous les spams
73-
function destroySpam()
73+
public function destroySpam()
7474
{
7575
return $this->deleteAll(['is_spam' => true]);
7676
}
@@ -87,7 +87,7 @@ lignes ont été supprimées.
8787
Suppressions strictes
8888
---------------------
8989

90-
.. php:method:: deleteOrFail($entity, $options = [])
90+
.. php:method:: deleteOrFail(EntityInterface $entity, array $options = [])
9191
9292
Utiliser cette méthode lancera une :php:exc:`Cake\\ORM\\Exception\\PersistenceFailedException`
9393
si:

fr/orm/saving-data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ n'auraient normalement pas le droit de stocker.
11901190
Strict Saving
11911191
=============
11921192

1193-
.. php:method:: saveOrFail($entity, $options = [])
1193+
.. php:method:: saveOrFail(EntityInterface $entity, array $options = [])
11941194
11951195
L'appel à cette méthode lancera une
11961196
:php:exc:`Cake\\ORM\\Exception\\PersistenceFailedException` si:
@@ -1269,7 +1269,7 @@ données dans l'entity::
12691269
Sauvegarder Plusieurs Entities
12701270
==============================
12711271

1272-
.. php:method:: saveMany($entities, $options = [])
1272+
.. php:method:: saveMany(iterable $entities, array $options = [])
12731273
12741274
Cette méthode vous permet de sauvegarder plusieurs entities de façon atomique.
12751275
``$entities`` peut être un tableau d'entities créées avec ``newEntities()`` /

fr/views/helpers/form.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ utiliser::
16141614
Créer des éléments de formulaire pour les dates et heures
16151615
---------------------------------------------------------
16161616

1617-
.. php:method:: dateTime($fieldName, $options = [])
1617+
.. php:method:: dateTime(string $fieldName, array $options = [])
16181618
16191619
* ``$fieldName`` - Une chaîne qui sera utilisée comme préfixe pour l'attribut
16201620
``name`` des ``select``.
@@ -1650,7 +1650,7 @@ Affichera:
16501650
Créer des Éléments Date
16511651
~~~~~~~~~~~~~~~~~~~~~~~
16521652

1653-
.. php:method:: date($fieldName, $options = [])
1653+
.. php:method:: date(string $fieldName, array $options = [])
16541654
16551655
* ``$fieldName`` - Une chaîne qui sera utilisée comme préfixe pour l'attribut
16561656
``name`` des ``select``.
@@ -1673,7 +1673,7 @@ Affichera:
16731673
Créer des Éléments Time
16741674
~~~~~~~~~~~~~~~~~~~~~~~
16751675

1676-
.. php:method:: time($fieldName, $options = [])
1676+
.. php:method:: time(string $fieldName, array $options = [])
16771677
16781678
* ``$fieldName`` - Une chaîne qui sera utilisée comme préfixe pour l'attribut
16791679
``name`` des ``select``.
@@ -2352,7 +2352,7 @@ Générer des Formulaires Entiers
23522352
Créer plusieurs éléments (controls)
23532353
-----------------------------------
23542354

2355-
.. php:method:: controls(array $fields = [], $options = [])
2355+
.. php:method:: controls(array $fields = [], array $options = [])
23562356
23572357
* ``$fields`` - Un tableau des champs à générer. Permet de définir des types
23582358
personnalisés, des labels et toutes autres options pour chaque champ.

fr/views/helpers/html.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ vous feriez::
542542
Créer des Blocs Javascript Inline
543543
---------------------------------
544544

545-
.. php:method:: scriptBlock($code, $options = [])
545+
.. php:method:: scriptBlock(string $code, array $options = [])
546546
547547
Pour générer des blocks Javascript à partir d'un code de vue en PHP, vous pouvez
548548
utiliser une des méthodes de script de blocks. Les scripts peuvent soit être
@@ -555,7 +555,7 @@ block::
555555
// Mis en mémoire d'un block de script pour être affiché plus tard.
556556
$this->Html->scriptBlock('alert("hi")', ['block' => true]);
557557

558-
.. php:method:: scriptStart($options = [])
558+
.. php:method:: scriptStart(array $options = [])
559559
.. php:method:: scriptEnd()
560560
561561
Vous pouvez utiliser la méthode ``scriptStart()`` pour créer un block capturant

ja/orm/deleting-data.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.. php:class:: Table
77
:noindex:
88

9-
.. php:method:: delete(Entity $entity, $options = [])
9+
.. php:method:: delete(EntityInterface $entity, array $options = [])
1010
1111
読み込んだエンティティーは、テーブル本来の削除メソッドを呼びだすことによって削除することが出来ます。 ::
1212

@@ -62,7 +62,7 @@ atomic オプションで無効化することも出来ます。 ::
6262
一回で複数行を削除するために、一括削除を使うことが効率的です。 ::
6363

6464
// 全てのスパムを削除する
65-
function destroySpam()
65+
public function destroySpam()
6666
{
6767
return $this->deleteAll(['is_spam' => true]);
6868
}
@@ -77,7 +77,7 @@ atomic オプションで無効化することも出来ます。 ::
7777
厳密な削除
7878
----------
7979

80-
.. php:method:: deleteOrFail($entity, $options = [])
80+
.. php:method:: deleteOrFail(EntityInterface $entity, array $options = [])
8181
8282
このメソッドを使用すると、次の条件で
8383
:php:exc:`Cake\\ORM\\Exception\\PersistenceFailedException` を投げます。

ja/orm/saving-data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ belongsToMany アソシエーションのそれぞれのエンティティーは
10951095
厳密な保存
10961096
=============
10971097

1098-
.. php:method:: saveOrFail($entity, $options = [])
1098+
.. php:method:: saveOrFail(EntityInterface $entity, array $options = [])
10991099
11001100
このメソッドを使用すると、次の条件で
11011101
:php:exc:`Cake\\ORM\\Exception\\PersistenceFailedException` を投げます。
@@ -1128,7 +1128,7 @@ belongsToMany アソシエーションのそれぞれのエンティティーは
11281128
複数のエンティティーの保存
11291129
==========================
11301130

1131-
.. php:method:: saveMany($entities, $options = [])
1131+
.. php:method:: saveMany(iterable $entities, array $options = [])
11321132
11331133
このメソッドを使うと、複数のエンティティーを自動で保存することができます。 ``$entities`` は
11341134
``newEntities()`` / ``patchEntities()`` で作成されたエンティティーの配列です。

ja/views/helpers/form.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ CakePHP が Windows サーバー上にインストールされている場合、
15561556
日時入力の作成
15571557
~~~~~~~~~~~~~~
15581558

1559-
.. php:method:: dateTime($fieldName, $options = [])
1559+
.. php:method:: dateTime(string $fieldName, array $options = [])
15601560
15611561
* ``$fieldName`` - ``select`` 要素の HTML ``name`` 属性のプレフィックスとして使用される文字列。
15621562
* ``$options`` - :ref:`general-control-options` または日時特有のオプション (下記参照)、
@@ -1627,7 +1627,7 @@ CakePHP が Windows サーバー上にインストールされている場合、
16271627
日付コントロールの作成
16281628
~~~~~~~~~~~~~~~~~~~~~~
16291629

1630-
.. php:method:: date($fieldName, $options = [])
1630+
.. php:method:: date(string $fieldName, array $options = [])
16311631
16321632
* ``$fieldName`` - ``select`` 要素の HTML ``name`` 属性のプレフィックスとして使用される文字列。
16331633
* ``$options`` - :ref:`general-control-options` 、 :ref:`datetime-options` 、
@@ -1668,7 +1668,7 @@ CakePHP が Windows サーバー上にインストールされている場合、
16681668
時間コントロールの作成
16691669
~~~~~~~~~~~~~~~~~~~~~~
16701670

1671-
.. php:method:: time($fieldName, $options = [])
1671+
.. php:method:: time(string $fieldName, array $options = [])
16721672
16731673
* ``$fieldName`` - ``select`` 要素の HTML ``name`` 属性のプレフィックスとして使用される文字列。
16741674
* ``$options`` - :ref:`general-control-options` 、 :ref:`datetime-options` 、
@@ -2348,7 +2348,7 @@ CakePHP の多くのヘルパーと同じように、FormHelper は、
23482348
複数のコントロールの作成
23492349
------------------------
23502350

2351-
.. php:method:: controls(array $fields = [], $options = [])
2351+
.. php:method:: controls(array $fields = [], array $options = [])
23522352
23532353
* ``$fields`` - 生成するフィールドの配列。指定した各フィールドのカスタムタイプ、
23542354
ラベル、その他のオプションを設定できます。

ja/views/helpers/html.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ script タグの配列を使用すると、生成されたすべての script
525525
インライン Javascript ブロックの作成
526526
------------------------------------
527527

528-
.. php:method:: scriptBlock($code, $options = [])
528+
.. php:method:: scriptBlock(string $code, array $options = [])
529529
530530
PHP ビューコードから Javascript ブロックを生成するには、スクリプトブロックメソッドの1つを使用できます。
531531
スクリプトは、その場所で出力することも、ブロックにバッファリングすることもできます。 ::
@@ -536,7 +536,7 @@ PHP ビューコードから Javascript ブロックを生成するには、ス
536536
// 後で出力するスクリプトブロックをバッファリング
537537
$this->Html->scriptBlock('alert("hi")', ['block' => true]);
538538

539-
.. php:method:: scriptStart($options = [])
539+
.. php:method:: scriptStart(array $options = [])
540540
.. php:method:: scriptEnd()
541541
542542
``scriptStart()`` メソッドを使って、 ``<script>`` タグに出力するキャプチャーブロックを作成することができます。

pt/orm/deleting-data.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Excluindo Dados
66
.. php:class:: Table
77
:noindex:
88

9-
.. php:method:: delete(Entity $entity, $options = [])
9+
.. php:method:: delete(EntityInterface $entity, array $options = [])
1010
1111
Depois que você carregou uma entidade, você pode excluir ela chamando o
1212
o método delete da tabela de origem::
@@ -66,7 +66,7 @@ Nesses casos, é mais eficiente usar uma exclusão em massa para remover várias
6666
linhas de uma vez só::
6767

6868
// Exclui todos oss spam
69-
function destroySpam()
69+
public function destroySpam()
7070
{
7171
return $this->deleteAll(['is_spam' => true]);
7272
}
@@ -83,7 +83,7 @@ excluídas.
8383
Exclusões Estrita
8484
-----------------
8585

86-
.. php:method:: deleteOrFail($entity, $options = [])
86+
.. php:method:: deleteOrFail(EntityInterface $entity, array $options = [])
8787
8888
Usar esse método lançará uma
8989
:php:exc:`Cake\\ORM\\Exception\\PersistenceFailedException` se:

0 commit comments

Comments
 (0)