Skip to content

Commit 2c63441

Browse files
committed
docs: move versionadded right after method
1 parent 9431807 commit 2c63441

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

user_guide_src/source/database/query_builder.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,36 +1869,36 @@ Class Reference
18691869

18701870
.. php:method:: updateFields($set, [$addToDefault = false, [$ignore = null]])
18711871
1872+
.. versionadded:: 4.3.0
1873+
18721874
:param mixed $set: Row of columns or array of rows, a row is an array or object
18731875
:param bool $addToDefault: Adds an additional column than those in dataset
18741876
:param bool $ignore: An array of columns to ignore from those in $set
18751877
:returns: ``BaseBuilder`` instance (method chaining)
18761878
:rtype: ``BaseBuilder``
18771879

1878-
.. versionadded:: 4.3.0
1879-
18801880
Used with ``updateBatch()`` and ``upsertBatch()`` methods. This defines the fields which will be updated.
18811881

18821882
.. php:method:: onConstraint($set)
18831883
1884+
.. versionadded:: 4.3.0
1885+
18841886
:param mixed $set: A set of fields or field used has keys or constraints
18851887
:returns: ``BaseBuilder`` instance (method chaining)
18861888
:rtype: ``BaseBuilder``
18871889

1888-
.. versionadded:: 4.3.0
1889-
18901890
Used with ``updateBatch()`` and ``upsertBatch()`` methods. This takes a comma delimited string of columns, and array, associative array, or RawSql.
18911891

18921892
.. php:method:: setData($set, [$escape = null, [$alias = '']])
18931893
1894+
.. versionadded:: 4.3.0
1895+
18941896
:param mixed $set: Row of columns or array of rows, a row is an array or object
18951897
:param bool $escape: Whether to escape values
18961898
:param bool $alias: A table alias for dataset
18971899
:returns: ``BaseBuilder`` instance (method chaining)
18981900
:rtype: ``BaseBuilder``
18991901

1900-
.. versionadded:: 4.3.0
1901-
19021902
Used for ``*Batch()`` methods to set data for insert, update, upsert.
19031903

19041904
.. php:method:: setUpdateBatch($key[, $value = ''[, $escape = null]])

user_guide_src/source/general/common_functions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,20 +349,20 @@ Miscellaneous Functions
349349

350350
.. php:function:: request()
351351
352+
.. versionadded:: 4.3.0
353+
352354
:returns: The shared Request object.
353355
:rtype: IncomingRequest|CLIRequest
354356

355-
.. versionadded:: 4.3.0
356-
357357
This function is a wrapper for ``Services::request()``.
358358

359359
.. php:function:: response()
360360
361+
.. versionadded:: 4.3.0
362+
361363
:returns: The shared Response object.
362364
:rtype: Response
363365

364-
.. versionadded:: 4.3.0
365-
366366
This function is a wrapper for ``Services::response()``.
367367

368368
.. php:function:: route_to($method[, ...$params])

user_guide_src/source/helpers/form_helper.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,11 @@ The following functions are available:
521521

522522
.. php:function:: validation_errors()
523523
524+
.. versionadded:: 4.3.0
525+
524526
:returns: The validation errors
525527
:rtype: array
526528

527-
.. versionadded:: 4.3.0
528-
529529
Returns the validation errors. First, this function checks the validation errors
530530
that are stored in the session. To store the errors in the session, you need to use ``withInput()`` with :php:func:`redirect() <redirect>`.
531531

@@ -538,12 +538,12 @@ The following functions are available:
538538

539539
.. php:function:: validation_list_errors($template = 'list')
540540
541+
.. versionadded:: 4.3.0
542+
541543
:param string $template: Validation template name
542544
:returns: Rendered HTML of the validation errors
543545
:rtype: string
544546

545-
.. versionadded:: 4.3.0
546-
547547
Returns the rendered HTML of the validation errors.
548548

549549
The parameter ``$template`` is a Validation template name.
@@ -557,13 +557,13 @@ The following functions are available:
557557

558558
.. php:function:: validation_show_error($field, $template = 'single')
559559
560+
.. versionadded:: 4.3.0
561+
560562
:param string $field: Field name
561563
:param string $template: Validation template name
562564
:returns: Rendered HTML of the validation error
563565
:rtype: string
564566

565-
.. versionadded:: 4.3.0
566-
567567
Returns a single error for the specified field in formatted HTML.
568568

569569
The parameter ``$template`` is a Validation template name.

0 commit comments

Comments
 (0)