API17

Difference between revisions of "JFilterInput"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (preparing for archive only)
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
=={{JVer|11.1}} JFilterInput==
 
=={{JVer|11.1}} JFilterInput==
 
===Description===
 
===Description===
{{Description:JFilterInput}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JFilterInput|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 14: Line 12:
 
|-
 
|-
 
|public  
 
|public  
|[[JFilterInput::__construct/11.1|__construct]]
+
|[[API17:JFilterInput::__construct|__construct]]
 
|Constructor for inputFilter class.  
 
|Constructor for inputFilter class.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFilterInput::checkAttribute/11.1|checkAttribute]]
+
|[[API17:JFilterInput::checkAttribute|checkAttribute]]
 
|Function to determine if contents of an attribute are safe.  
 
|Function to determine if contents of an attribute are safe.  
 
|-
 
|-
 
|public  
 
|public  
|[[JFilterInput::clean/11.1|clean]]
+
|[[API17:JFilterInput::clean|clean]]
 
|Method to be called by another php script.  
 
|Method to be called by another php script.  
 
|-
 
|-
 
|public   
 
|public   
|[[JFilterInput::getInstance/11.1|getInstance]]
+
|[[API17:JFilterInput::getInstance|getInstance]]
 
|Returns an input filter object, only creating it if it doesn't already exist.  
 
|Returns an input filter object, only creating it if it doesn't already exist.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JFilterInput::_cleanAttributes/11.1|_cleanAttributes]]
+
|[[API17:JFilterInput::_cleanAttributes|_cleanAttributes]]
 
|Internal method to strip a tag of certain attributes.  
 
|Internal method to strip a tag of certain attributes.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JFilterInput::_cleanTags/11.1|_cleanTags]]
+
|[[API17:JFilterInput::_cleanTags|_cleanTags]]
 
|Internal method to strip a string of certain tags.  
 
|Internal method to strip a string of certain tags.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JFilterInput::_decode/11.1|_decode]]
+
|[[API17:JFilterInput::_decode|_decode]]
 
|Try to convert to plaintext.  
 
|Try to convert to plaintext.  
 
|-
 
|-
 
|protected  
 
|protected  
|[[JFilterInput::_remove/11.1|_remove]]
+
|[[API17:JFilterInput::_remove|_remove]]
 
|Internal method to iteratively remove all unwanted tags and attributes.  
 
|Internal method to iteratively remove all unwanted tags and attributes.  
 
|-
 
|-
 
|}
 
|}
 
* '''Defined in''' libraries/joomla/filter/filterinput.php
 
* '''Defined in''' libraries/joomla/filter/filterinput.php
* '''Extends''' [[JObject/11.1|JObject]]
+
* '''Extends''' [[API17:JObject|JObject]]
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.filter.filterinput' );</source>
 
<source lang="php">jimport( 'joomla.filter.filterinput' );</source>
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JFilterInput source code''' on [[jplatform:filter/filterinput.php|BitBucket]]
 
* {{JVer|11.1}} '''JFilterInput source code''' on [[jplatform:filter/filterinput.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Filter/11.1|Filter]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Filter|Filter]]
* [[JFilterInput|Other versions of JFilterInput]]
+
* [[API17:JFilterInput|Other versions of JFilterInput]]
{{SeeAlso:JFilterInput}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JFilterInput|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JFilterInput
 
category=JFilterInput
category=CodeExample
+
namespace=CodeExample
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
Line 69: Line 65:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JFilterInput]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:02, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JFilterInput[edit]

Description[edit]

Methods[edit]

Visibility Method name Description
public __construct Constructor for inputFilter class.
public static checkAttribute Function to determine if contents of an attribute are safe.
public clean Method to be called by another php script.
public getInstance Returns an input filter object, only creating it if it doesn't already exist.
protected _cleanAttributes Internal method to strip a tag of certain attributes.
protected _cleanTags Internal method to strip a string of certain tags.
protected _decode Try to convert to plaintext.
protected _remove Internal method to iteratively remove all unwanted tags and attributes.
  • Defined in libraries/joomla/filter/filterinput.php
  • Extends JObject

Importing[edit]

jimport( 'joomla.filter.filterinput' );

See also[edit]


User contributed notes[edit]

Code Examples[edit]