JInputFilter
JInputFilter is a class for filtering input from any data source
Forked from the php input filter library by: Daniel Morris <[email protected]> Original Contributors: Gianpaolo Racca, Ghislain Picard, Marco Wandschneider, Chris Tobin and Andrew Eddie.
Located in /joomla/filter/input.php (line 29)
JObject (Subpackage Base) JInputFilter (Subpackage Filter)
Constructor for inputFilter class. Only first parameter is required.
- array $tagsArray: list of user-defined tags
- array $attrArray: list of user-defined attributes
- int $tagsMethod: WhiteList method = 0, BlackList method = 1
- int $attrMethod: WhiteList method = 0, BlackList method = 1
- int $xssAuto: Only auto clean essentials = 0, Allow clean blacklisted tags/attr = 1
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Function to determine if contents of an attribute is safe
- array $attrSubSet: A 2 element array for attributes name,value
Method to be called by another php script. Processes for XSS and specified bad code.
- mixed $source: Input string/array-of-string to be 'cleaned'
- string $type: Return type for the variable (INT, FLOAT, WORD, BOOLEAN, STRING)
Returns a reference to an input filter object, only creating it if it doesn't already exist.
This method must be invoked as:
$filter = & JInputFilter::getInstance();
- array $tagsArray: list of user-defined tags
- array $attrArray: list of user-defined attributes
- int $tagsMethod: WhiteList method = 0, BlackList method = 1
- int $attrMethod: WhiteList method = 0, BlackList method = 1
- int $xssAuto: Only auto clean essentials = 0, Allow clean blacklisted tags/attr = 1
Internal method to strip a tag of certain attributes
- array $attrSet: Array of attribute pairs to filter
Internal method to strip a string of certain tags
- string $source: Input string to be 'cleaned'
Internal method to iteratively remove all unwanted tags and attributes
- string $source: Input string to be 'cleaned'
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getPublicProperties()
JObject::set()
JObject::toString()
Documentation generated on Mon, 05 Mar 2007 21:08:06 +0000 by phpDocumentor 1.3.1