Skip to content

Commit 66b8e26

Browse files
committed
docs: remove detailed explanations in getVar()
getVar() is not recommended.
1 parent d0c1d5b commit 66b8e26

6 files changed

Lines changed: 2 additions & 45 deletions

File tree

‎user_guide_src/source/incoming/incomingrequest.rst‎

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -366,34 +366,7 @@ The methods provided by the parent classes that are available are:
366366
:returns: ``$_REQUEST`` if no parameters supplied, otherwise the REQUEST value if found, or null if not
367367
:rtype: array|bool|float|int|object|string|null
368368

369-
The first parameter will contain the name of the REQUEST item you are looking for:
370-
371-
.. literalinclude:: incomingrequest/027.php
372-
373-
The method returns null if the item you are attempting to retrieve
374-
does not exist.
375-
376-
The second optional parameter lets you run the data through the PHP's
377-
filters. Pass in the desired filter type as the second parameter:
378-
379-
.. literalinclude:: incomingrequest/028.php
380-
381-
To return an array of all REQUEST items call without any parameters.
382-
383-
To return all REQUEST items and pass them through the filter, set the
384-
first parameter to null while setting the second parameter to the filter
385-
you want to use:
386-
387-
.. literalinclude:: incomingrequest/029.php
388-
389-
To return an array of multiple REQUEST parameters, pass all the required keys as an array:
390-
391-
.. literalinclude:: incomingrequest/030.php
392-
393-
Same rule applied here, to retrieve the parameters with filtering, set the second parameter to
394-
the filter type to apply:
395-
396-
.. literalinclude:: incomingrequest/031.php
369+
This method is identical to ``getGet()``, only it fetches REQUEST data.
397370

398371
.. php:method:: getGet([$index = null[, $filter = null[, $flags = null]]])
399372
@@ -444,7 +417,7 @@ The methods provided by the parent classes that are available are:
444417
:returns: ``$_POST`` if no parameters supplied, otherwise the POST value if found, or null if not
445418
:rtype: array|bool|float|int|object|string|null
446419

447-
This method is identical to ``getVar()``, only it fetches POST data.
420+
This method is identical to ``getGet()``, only it fetches POST data.
448421

449422
.. php:method:: getPostGet([$index = null[, $filter = null[, $flags = null]]])
450423

‎user_guide_src/source/incoming/incomingrequest/027.php‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎user_guide_src/source/incoming/incomingrequest/028.php‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎user_guide_src/source/incoming/incomingrequest/029.php‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎user_guide_src/source/incoming/incomingrequest/030.php‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎user_guide_src/source/incoming/incomingrequest/031.php‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)