Skip to content

Commit 917b150

Browse files
authored
Merge pull request #6392 from kenjis/fix-docs-link-to-func
docs: fix links to function/method
2 parents f4ce26a + 50df10d commit 917b150

File tree

19 files changed

+49
-22
lines changed

19 files changed

+49
-22
lines changed

contributing/documentation.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ To a URL
124124
To a Function
125125
=============
126126

127-
:php:func:`dot_array_search`
127+
:php:func:`dot_array_search()`
128128

129-
:php:func:`Response::setCookie() <setCookie>`
129+
To a Method
130+
=============
131+
132+
:php:meth:`CodeIgniter\\HTTP\\Response::setCookie()`

user_guide_src/source/changelogs/v4.2.0.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ Behavior Changes
5454
- The color code output by :ref:`CLI::color() <cli-library-color>` has been changed to fix a bug.
5555
- To prevent unexpected access from the web browser, if a controller is added to a cli route (``$routes->cli()``), all methods of that controller are no longer accessible via auto-routing.
5656
- There is a possible backward compatibility break for those users extending the History Collector and they should probably update ``History::setFiles()`` method.
57-
- The :php:func:`dot_array_search`'s unexpected behavior has been fixed. Now ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returns ``null``. The previous versions returned ``23``.
58-
- The ``CodeIgniter::storePreviousURL()`` has been changed to store only the URLs whose Content-Type was ``text/html``. It also affects the behavior of :php:func:`previous_url` and :php:func:`redirect()->back() <redirect>`.
57+
- The :php:func:`dot_array_search()`'s unexpected behavior has been fixed. Now ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returns ``null``. The previous versions returned ``23``.
58+
- The ``CodeIgniter::storePreviousURL()`` has been changed to store only the URLs whose Content-Type was ``text/html``. It also affects the behavior of :php:func:`previous_url()` and :php:func:`redirect()->back() <redirect>`.
5959

6060
Enhancements
6161
************
@@ -97,8 +97,8 @@ Database
9797
Helpers and Functions
9898
=====================
9999

100-
- HTML helper ``script_tag()`` now uses ``null`` values to write boolean attributes in minimized form: ``<script src="..." defer />``. See the sample code for :php:func:`script_tag`.
101-
- Added 4th parameter ``$includeDir`` to ``get_filenames()``. See :php:func:`get_filenames`.
100+
- HTML helper ``script_tag()`` now uses ``null`` values to write boolean attributes in minimized form: ``<script src="..." defer />``. See the sample code for :php:func:`script_tag()`.
101+
- Added 4th parameter ``$includeDir`` to ``get_filenames()``. See :php:func:`get_filenames()`.
102102
- Exception information logged through ``log_message()`` has now improved. It now includes the file and line where the exception originated. It also does not truncate the message anymore.
103103
- The log format has also changed. If users are depending on the log format in their apps, the new log format is "<1-based count> <cleaned filepath>(<line>): <class><function><args>"
104104

user_guide_src/source/changelogs/v4.2.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ BREAKING
1616
- The method signature of ``CodeIgniter\Debug\Exceptions::__construct()`` has been changed. The ``IncomingRequest`` typehint on the ``$request`` parameter was removed. Extending classes should likewise remove the parameter so as not to break LSP.
1717
- The method signature of ``BaseBuilder.php::insert()`` and ``BaseBuilder.php::update()`` have been changed. The ``?array`` typehint on the ``$set`` parameter was removed.
1818
- A bug that caused pages to be cached before after filters were executed when using page caching has been fixed. Adding response headers or changing the response body in after filters now caches them correctly.
19-
- Due to a bug fix, now :php:func:`random_string` with the first parameter ``'crypto'`` throws ``InvalidArgumentException`` if the second parameter ``$len`` is an odd number.
19+
- Due to a bug fix, now :php:func:`random_string()` with the first parameter ``'crypto'`` throws ``InvalidArgumentException`` if the second parameter ``$len`` is an odd number.
2020

2121
Changes
2222
*******

user_guide_src/source/cli/cli_commands.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ The ``BaseCommand`` class that all commands must extend have a couple of helpful
9090
be familiar with when creating your own commands. It also has a :doc:`Logger </general/logging>` available at
9191
``$this->logger``.
9292

93-
.. php:class:: CodeIgniter\\CLI\\BaseCommand
93+
.. php:namespace:: CodeIgniter\CLI
94+
95+
.. php:class:: BaseCommand
9496
9597
.. php:method:: call(string $command[, array $params = []])
9698

user_guide_src/source/database/results.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ true on success or false on failure.
239239
Class Reference
240240
***************
241241

242-
.. php:class:: CodeIgniter\\Database\\BaseResult
242+
.. php:namespace:: CodeIgniter\Database
243+
244+
.. php:class:: BaseResult
243245
244246
.. php:method:: getResult([$type = 'object'])
245247

user_guide_src/source/dbmgmt/forge.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ change the name, you can add a "name" key into the field defining array.
289289
Class Reference
290290
***************
291291

292-
.. php:class:: CodeIgniter\\Database\\Forge
292+
.. php:namespace:: CodeIgniter\Database
293+
294+
.. php:class:: Forge
293295
294296
.. php:method:: addColumn($table[, $field = []])
295297

user_guide_src/source/dbmgmt/migration.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ Preference Default Options Des
216216
Class Reference
217217
***************
218218

219-
.. php:class:: CodeIgniter\\Database\\MigrationRunner
219+
.. php:namespace:: CodeIgniter\Database
220+
221+
.. php:class:: MigrationRunner
220222
221223
.. php:method:: findMigrations()
222224

user_guide_src/source/general/common_functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Miscellaneous Functions
348348

349349
.. note:: ``route_to()`` returns a route, not a full URI path for your site.
350350
If your **baseURL** contains sub folders, the return value is not the same
351-
as the URI to link. In that case, just use :php:func:`url_to` instead.
351+
as the URI to link. In that case, just use :php:func:`url_to()` instead.
352352

353353
.. php:function:: service($name[, ...$params])
354354

user_guide_src/source/helpers/cookie_helper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following functions are available:
3737
This helper function gives you friendlier syntax to set browser
3838
cookies. Refer to the :doc:`Response Library </outgoing/response>` for
3939
a description of its use, as this function is an alias for
40-
:php:func:`Response::setCookie() <setCookie>`.
40+
:php:meth:`CodeIgniter\\HTTP\\Response::setCookie()`.
4141

4242
.. php:function:: get_cookie($index[, $xssClean = false[, $prefix = '']])
4343

user_guide_src/source/incoming/message.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ This same negotiation can happen with four types of data:
3434
Class Reference
3535
***************
3636

37-
.. php:class:: CodeIgniter\\HTTP\\Message
37+
.. php:namespace:: CodeIgniter\HTTP
38+
39+
.. php:class:: Message
3840
3941
.. php:method:: getBody()
4042

user_guide_src/source/incoming/request.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ See the documentation for the :doc:`IncomingRequest Class </incoming/incomingreq
1313
Class Reference
1414
===============
1515

16-
.. php:class:: CodeIgniter\\HTTP\\Request
16+
.. php:namespace:: CodeIgniter\HTTP
17+
18+
.. php:class:: Request
1719
1820
.. php:method:: getIPAddress()
1921

user_guide_src/source/installation/upgrade_422.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Others
2828

2929
- The method ``Forge::createTable()`` no longer executes a ``CREATE TABLE IF NOT EXISTS``. When `$ifNotExists` is true, if the table is not found in ``$db->tableExists($table)`` then ``CREATE TABLE`` is executed.
3030
- The second parameter ``$ifNotExists`` of ``Forge::_createTable()`` is deprecated. It is no longer used and will be removed in a future release.
31-
- When you use :php:func:`random_string` with the first parameter ``'crypto'``, now if you set the second parameter ``$len`` to an odd number, ``InvalidArgumentException`` will be thrown. Change the parameter to an even number.
31+
- When you use :php:func:`random_string()` with the first parameter ``'crypto'``, now if you set the second parameter ``$len`` to an odd number, ``InvalidArgumentException`` will be thrown. Change the parameter to an even number.
3232

3333
Breaking Enhancements
3434
*********************

user_guide_src/source/libraries/cookies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ Class Reference
382382
:rtype: array
383383
:returns: Returns the array representation of the Cookie instance.
384384

385-
.. php:class:: CodeIgniter\\HTTP\\Cookie\\CookieStore
385+
.. php:class:: CookieStore
386386
387387
.. php:staticmethod:: fromCookieHeaders(array $headers[, bool $raw = false])
388388

user_guide_src/source/libraries/encryption.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ Remember, that ``$config`` must be an instance of ``Config\Encryption`` class.
214214
Class Reference
215215
***************
216216

217-
.. php:class:: CodeIgniter\\Encryption\\Encryption
217+
.. php:namespace:: CodeIgniter\Encryption
218+
219+
.. php:class:: Encryption
218220
219221
.. php:staticmethod:: createKey([$length = 32])
220222

user_guide_src/source/libraries/user_agent.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ is available:
4343
Class Reference
4444
***************
4545

46-
.. php:class:: CodeIgniter\\HTTP\\UserAgent
46+
.. php:namespace:: CodeIgniter\HTTP
47+
48+
.. php:class:: UserAgent
4749
4850
.. php:method:: isBrowser([$key = null])
4951

user_guide_src/source/outgoing/response.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ The methods provided by the parent class that are available are:
247247
* :meth:`CodeIgniter\\HTTP\\Message::negotiateLanguage`
248248
* :meth:`CodeIgniter\\HTTP\\Message::negotiateLanguage`
249249

250-
.. php:class:: CodeIgniter\\HTTP\\Response
250+
.. php:namespace:: CodeIgniter\HTTP
251+
252+
.. php:class:: Response
251253
252254
.. php:method:: getStatusCode()
253255

user_guide_src/source/outgoing/table.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ to the Table constructor:
7575
Class Reference
7676
***************
7777

78+
.. php:namespace:: CodeIgniter\View
79+
7880
.. php:class:: Table
7981
8082
.. attribute:: $function = null

user_guide_src/source/outgoing/view_parser.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,9 @@ Result::
576576
Class Reference
577577
***************
578578

579-
.. php:class:: CodeIgniter\\View\\Parser
579+
.. php:namespace:: CodeIgniter\View
580+
581+
.. php:class:: Parser
580582
581583
.. php:method:: render($view[, $options[, $saveData]])
582584

user_guide_src/source/outgoing/view_renderer.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ Several options can be passed to the ``render()`` or ``renderString()`` methods:
105105
Class Reference
106106
***************
107107

108-
.. php:class:: CodeIgniter\\View\\View
108+
.. php:namespace:: CodeIgniter\View
109+
110+
.. php:class:: View
109111
110112
.. php:method:: render($view[, $options[, $saveData = false]])
111113
:noindex:

0 commit comments

Comments
 (0)