API15

JFilterInput: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JFilterInput}} ===Defined in...
 
m preparing for archive only
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JFilterInput|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JFilterInput}}
===Defined in===
===Defined in===
libraries/joomla/filter/filterinput.php
libraries/joomla/filter/filterinput.php
Line 24: Line 19:
|Function to determine if contents of an attribute is safe
|Function to determine if contents of an attribute is safe
|}
|}
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.filter.filterinput' );</source>
<source lang="php">jimport( 'joomla.filter.filterinput' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JFilterInput|Edit See Also]]<nowiki>]</nowiki>
 
</span>
{{SeeAlso:JFilterInput}}


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=JFilterInput
  category=JFilterInput
  category=CodeExample
  namespace=CodeExample
  category=ClassExample
  category=ClassExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 00:37, 25 March 2017

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' );



Examples

Code Examples