Skip to content

Commit fb0af42

Browse files
committed
docs: add note to not recommended method
1 parent 99538c5 commit fb0af42

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ getGetPost()
151151
getVar()
152152
--------
153153

154+
.. important:: This method exists only for backward compatibility. Do not use it
155+
in new projects. Even if you are already using it, we recommend that you use
156+
another, more appropriate method.
157+
154158
The ``getVar()`` method will pull from ``$_REQUEST``, so will return any data from ``$_GET``, ``$POST``, or ``$_COOKIE`` (depending on php.ini `request-order <https://www.php.net/manual/en/ini.core.php#ini.request-order>`_).
155159

156160
.. warning:: If you want to validate POST data only, don't use ``getVar()``.
@@ -362,6 +366,10 @@ The methods provided by the parent classes that are available are:
362366
:returns: ``$_REQUEST`` if no parameters supplied, otherwise the REQUEST value if found, or null if not
363367
:rtype: array|bool|float|int|object|string|null
364368

369+
.. important:: This method exists only for backward compatibility. Do not use it
370+
in new projects. Even if you are already using it, we recommend that you use
371+
another, more appropriate method.
372+
365373
This method is identical to ``getGet()``, only it fetches REQUEST data.
366374

367375
.. php:method:: getGet([$index = null[, $filter = null[, $flags = null]]])

0 commit comments

Comments
 (0)