Skip to content

Commit

Permalink
Merge pull request codeigniter4#7153 from kenjis/fix-docs-add-version…
Browse files Browse the repository at this point in the history
…added

docs: add versionadded
  • Loading branch information
kenjis authored Jan 19, 2023
2 parents 2c387e1 + 77467af commit 4b9498d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 2 deletions.
8 changes: 8 additions & 0 deletions user_guide_src/source/database/query_builder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ escaping of fields may break them.
RawSql
^^^^^^

.. versionadded:: 4.2.0

Since v4.2.0, ``$builder->select()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.

.. literalinclude:: query_builder/099.php
Expand Down Expand Up @@ -265,6 +267,8 @@ outer``, and ``right outer``.
RawSql
^^^^^^

.. versionadded:: 4.2.0

Since v4.2.0, ``$builder->join()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.

.. literalinclude:: query_builder/102.php
Expand Down Expand Up @@ -335,6 +339,8 @@ methods:
5. RawSql
^^^^^^^^^

.. versionadded:: 4.2.0

Since v4.2.0, ``$builder->where()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.

.. literalinclude:: query_builder/100.php
Expand Down Expand Up @@ -450,6 +456,8 @@ searches.
3. RawSql
^^^^^^^^^

.. versionadded:: 4.2.0

Since v4.2.0, ``$builder->like()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.

.. literalinclude:: query_builder/101.php
Expand Down
3 changes: 2 additions & 1 deletion user_guide_src/source/dbmgmt/forge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ The add fields method will accept the above array.
Raw Sql Strings as Default Values
---------------------------------

Since v4.2.0, ``$forge->addField()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.
.. versionadded:: 4.2.0

Since v4.2.0, ``$forge->addField()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.

.. literalinclude:: forge/027.php

Expand Down
4 changes: 4 additions & 0 deletions user_guide_src/source/general/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ redirect code to use instead of the default (``302``, "temporary redirect"):
Specify HTTP Status Code in Your Exception
==========================================

.. versionadded:: 4.3.0

Since v4.3.0, you can specify the HTTP status code for your Exception class to implement
``HTTPExceptionInterface``.

Expand All @@ -129,6 +131,8 @@ When an exception implementing ``HTTPExceptionInterface`` is caught by CodeIgnit
Specify Exit Code in Your Exception
===================================

.. versionadded:: 4.3.0

Since v4.3.0, you can specify the exit code for your Exception class to implement
``HasExitCodeInterface``.

Expand Down
2 changes: 2 additions & 0 deletions user_guide_src/source/incoming/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ Auto-routing also will not work.
Auto Routing (Improved)
************************

.. versionadded:: 4.2.0

Since v4.2.0, the new more secure Auto Routing has been introduced.

.. note:: If you are familiar with Auto Routing, which was enabled by default
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/incoming/incomingrequest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ be checked with the ``isAJAX()`` and ``isCLI()`` methods:
is()
====

.. versionadded:: 4.3.0
.. versionadded:: 4.3.0

Since v4.3.0, you can use the ``is()`` method. It returns boolean.

Expand Down
8 changes: 8 additions & 0 deletions user_guide_src/source/incoming/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ will only match **product/123** and generate 404 errors for other example.
Array Callable Syntax
=====================

.. versionadded:: 4.2.0

Since v4.2.0, you can use array callable syntax to specify the controller:

.. literalinclude:: routing/013.php
Expand Down Expand Up @@ -427,13 +429,17 @@ You may also supply arguments to be passed to the alias filter's ``before()`` an
Classname Filter
^^^^^^^^^^^^^^^^

.. versionadded:: 4.1.5

You specify a filter classname for the filter value:

.. literalinclude:: routing/036.php

Multiple Filters
^^^^^^^^^^^^^^^^

.. versionadded:: 4.1.5

.. important:: *Multiple filters* is disabled by default. Because it breaks backward compatibility. If you want to use it, you need to configure. See :ref:`upgrade-415-multiple-filters-for-a-route` for the details.

You specify an array for the filter value:
Expand Down Expand Up @@ -604,6 +610,8 @@ For an example use of lowering the priority see :ref:`routing-priority`:
Auto Routing (Improved)
***********************

.. versionadded:: 4.2.0

Since v4.2.0, the new more secure Auto Routing has been introduced.

.. note:: If you are familiar with Auto Routing, which was enabled by default
Expand Down
2 changes: 2 additions & 0 deletions user_guide_src/source/libraries/encryption.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ an instance of the ``Config\Encryption`` class.
Configuration to Maintain Compatibility with CI3
------------------------------------------------

.. versionadded:: 4.3.0

Since v4.3.0, you can decrypt data encrypted with CI3's Encryption.
If you need to decrypt such data, use the following settings to maintain compatibility.

Expand Down

0 comments on commit 4b9498d

Please sign in to comment.