Skip to content

Commit 4b9498d

Browse files
authored
Merge pull request #7153 from kenjis/fix-docs-add-versionadded
docs: add versionadded
2 parents 2c387e1 + 77467af commit 4b9498d

7 files changed

Lines changed: 27 additions & 2 deletions

File tree

user_guide_src/source/database/query_builder.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ escaping of fields may break them.
148148
RawSql
149149
^^^^^^
150150

151+
.. versionadded:: 4.2.0
152+
151153
Since v4.2.0, ``$builder->select()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.
152154

153155
.. literalinclude:: query_builder/099.php
@@ -265,6 +267,8 @@ outer``, and ``right outer``.
265267
RawSql
266268
^^^^^^
267269

270+
.. versionadded:: 4.2.0
271+
268272
Since v4.2.0, ``$builder->join()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.
269273

270274
.. literalinclude:: query_builder/102.php
@@ -335,6 +339,8 @@ methods:
335339
5. RawSql
336340
^^^^^^^^^
337341

342+
.. versionadded:: 4.2.0
343+
338344
Since v4.2.0, ``$builder->where()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.
339345

340346
.. literalinclude:: query_builder/100.php
@@ -450,6 +456,8 @@ searches.
450456
3. RawSql
451457
^^^^^^^^^
452458

459+
.. versionadded:: 4.2.0
460+
453461
Since v4.2.0, ``$builder->like()`` accepts a ``CodeIgniter\Database\RawSql`` instance, which expresses raw SQL strings.
454462

455463
.. literalinclude:: query_builder/101.php

user_guide_src/source/dbmgmt/forge.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ The add fields method will accept the above array.
122122
Raw Sql Strings as Default Values
123123
---------------------------------
124124

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

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

128129
.. literalinclude:: forge/027.php
129130

user_guide_src/source/general/errors.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ redirect code to use instead of the default (``302``, "temporary redirect"):
119119
Specify HTTP Status Code in Your Exception
120120
==========================================
121121

122+
.. versionadded:: 4.3.0
123+
122124
Since v4.3.0, you can specify the HTTP status code for your Exception class to implement
123125
``HTTPExceptionInterface``.
124126

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

134+
.. versionadded:: 4.3.0
135+
132136
Since v4.3.0, you can specify the exit code for your Exception class to implement
133137
``HasExitCodeInterface``.
134138

user_guide_src/source/incoming/controllers.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ Auto-routing also will not work.
153153
Auto Routing (Improved)
154154
************************
155155

156+
.. versionadded:: 4.2.0
157+
156158
Since v4.2.0, the new more secure Auto Routing has been introduced.
157159

158160
.. note:: If you are familiar with Auto Routing, which was enabled by default

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ be checked with the ``isAJAX()`` and ``isCLI()`` methods:
4545
is()
4646
====
4747

48-
.. versionadded:: 4.3.0
48+
.. versionadded:: 4.3.0
4949

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

user_guide_src/source/incoming/routing.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ will only match **product/123** and generate 404 errors for other example.
151151
Array Callable Syntax
152152
=====================
153153

154+
.. versionadded:: 4.2.0
155+
154156
Since v4.2.0, you can use array callable syntax to specify the controller:
155157

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

432+
.. versionadded:: 4.1.5
433+
430434
You specify a filter classname for the filter value:
431435

432436
.. literalinclude:: routing/036.php
433437

434438
Multiple Filters
435439
^^^^^^^^^^^^^^^^
436440

441+
.. versionadded:: 4.1.5
442+
437443
.. 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.
438444

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

613+
.. versionadded:: 4.2.0
614+
607615
Since v4.2.0, the new more secure Auto Routing has been introduced.
608616

609617
.. note:: If you are familiar with Auto Routing, which was enabled by default

user_guide_src/source/libraries/encryption.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ an instance of the ``Config\Encryption`` class.
8484
Configuration to Maintain Compatibility with CI3
8585
------------------------------------------------
8686

87+
.. versionadded:: 4.3.0
88+
8789
Since v4.3.0, you can decrypt data encrypted with CI3's Encryption.
8890
If you need to decrypt such data, use the following settings to maintain compatibility.
8991

0 commit comments

Comments
 (0)