JFilterInput: Difference between revisions
From Joomla! Documentation
No edit summary |
m clean up |
||
| Line 1: | Line 1: | ||
{{subst:Description:JFilterInput}} | |||
{{Description:JFilterInput}} | |||
===Defined in=== | ===Defined in=== | ||
| Line 28: | Line 25: | ||
<source lang="php">jimport( 'joomla.filter.filterinput' );</source> | <source lang="php">jimport( 'joomla.filter.filterinput' );</source> | ||
{{subst:SeeAlso:JFilterInput}} | |||
{{SeeAlso:JFilterInput}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 13:20, 24 March 2017
{{subst:Description:JFilterInput}}
Defined in
libraries/joomla/filter/filterinput.php
Methods
| Method name | Description |
|---|---|
| __construct | Constructor for inputFilter class. Only first parameter is required. |
| getInstance | Returns a reference to an input filter object, only creating it if it doesn't already exist. |
| clean | Method to be called by another php script. Processes for XSS and specified bad code. |
| checkAttribute | Function to determine if contents of an attribute is safe |
Importing
jimport( 'joomla.filter.filterinput' );
{{subst:SeeAlso:JFilterInput}}
Examples
<CodeExamplesForm />