JInput: Difference between revisions
From Joomla! Documentation
Updated to r1448:247ba8d88526 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
=={{JVer|11.1}} JInput== | =={{JVer|11.1}} JInput== | ||
===Description=== | ===Description=== | ||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
| Line 14: | Line 12: | ||
|- | |- | ||
|public | |public | ||
|[[JInput::__call | |[[API17:JInput::__call|__call]] | ||
|Magic method to get filtered input data. | |Magic method to get filtered input data. | ||
|- | |- | ||
|public | |public | ||
|[[JInput::__construct | |[[API17:JInput::__construct|__construct]] | ||
|Constructor. | |Constructor. | ||
|- | |- | ||
|public | |public | ||
|[[JInput::__get | |[[API17:JInput::__get|__get]] | ||
|Magic method to get an input object. | |Magic method to get an input object. | ||
|- | |- | ||
|public | |public | ||
|[[JInput::get | |[[API17:JInput::get|get]] | ||
|Gets a value from the input data. | |Gets a value from the input data. | ||
|- | |- | ||
|public | |public | ||
|[[JInput::getArray | |[[API17:JInput::getArray|getArray]] | ||
|Gets an array of values from the request. | |Gets an array of values from the request. | ||
|- | |- | ||
|public | |public | ||
|[[JInput::getMethod | |[[API17:JInput::getMethod|getMethod]] | ||
|Gets the request method. | |Gets the request method. | ||
|- | |- | ||
|public | |public | ||
|[[JInput::set | |[[API17:JInput::set|set]] | ||
|Sets a value. | |Sets a value. | ||
|- | |- | ||
| Line 44: | Line 42: | ||
* '''Defined in''' libraries/joomla/application/input.php | * '''Defined in''' libraries/joomla/application/input.php | ||
* '''Extended by''' | * '''Extended by''' | ||
** [[JInputCLI | ** [[API17:JInputCLI|JInputCLI]] | ||
** [[JInputCookie | ** [[API17:JInputCookie|JInputCookie]] | ||
** [[JInputFiles | ** [[API17:JInputFiles|JInputFiles]] | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.application.input' );</source> | <source lang="php">jimport( 'joomla.application.input' );</source> | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JInput source code''' on [[jplatform:application/input.php|BitBucket]] | * {{JVer|11.1}} '''JInput source code''' on [[jplatform:application/input.php|BitBucket]] | ||
* {{JVer|11.1}} Subpackage [[Subpackage Application | * {{JVer|11.1}} Subpackage [[API17:Subpackage Application|Application]] | ||
* [[JInput|Other versions of JInput]] | * [[API17:JInput|Other versions of JInput]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
See [[API17:JInput_Background_for_Joomla_Platform]] | |||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JInput | category=JInput | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| Line 68: | Line 65: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude> | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:15, 25 March 2017
JInput
Description
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | __call | Magic method to get filtered input data. |
| public | __construct | Constructor. |
| public | __get | Magic method to get an input object. |
| public | get | Gets a value from the input data. |
| public | getArray | Gets an array of values from the request. |
| public | getMethod | Gets the request method. |
| public | set | Sets a value. |
- Defined in libraries/joomla/application/input.php
- Extended by
Importing
jimport( 'joomla.application.input' );
See also
JInput source code on BitBucket
Subpackage Application- Other versions of JInput
User contributed notes
See API17:JInput_Background_for_Joomla_Platform
Code Examples