[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/joomla/filter/ -> filterinput.php (summary)

(no description)

Copyright: Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
License: GNU/GPL, see LICENSE.php
Version: $Id: filterinput.php 19339 2010-11-03 14:52:38Z ian $
File Size: 517 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JFilterInput:: (7 methods):
  __construct()
  clean()
  checkAttribute()
  _remove()
  _cleanTags()
  _cleanAttributes()
  _decode()


Class: JFilterInput  - X-Ref

JFilterInput is a class for filtering input from any data source

Forked from the php input filter library by: Daniel Morris <dan@rootcube.com>
Original Contributors: Gianpaolo Racca, Ghislain Picard, Marco Wandschneider, Chris Tobin and Andrew Eddie.

__construct($tagsArray = array()   X-Ref
Constructor for inputFilter class. Only first parameter is required.

param: array    $tagsArray    list of user-defined tags
param: array    $attrArray    list of user-defined attributes
param: int        $tagsMethod    WhiteList method = 0, BlackList method = 1
param: int        $attrMethod    WhiteList method = 0, BlackList method = 1
param: int        $xssAuto    Only auto clean essentials = 0, Allow clean blacklisted tags/attr = 1

clean($source, $type='string')   X-Ref
No description

checkAttribute($attrSubSet)   X-Ref
Function to determine if contents of an attribute is safe

param: array    $attrSubSet    A 2 element array for attributes name,value
return: boolean True if bad code is detected

_remove($source)   X-Ref
Internal method to iteratively remove all unwanted tags and attributes

param: string    $source    Input string to be 'cleaned'
return: string    'Cleaned' version of input parameter

_cleanTags($source)   X-Ref
Internal method to strip a string of certain tags

param: string    $source    Input string to be 'cleaned'
return: string    'Cleaned' version of input parameter

_cleanAttributes($attrSet)   X-Ref
Internal method to strip a tag of certain attributes

param: array    $attrSet    Array of attribute pairs to filter
return: array    Filtered array of attribute pairs

_decode($source)   X-Ref
Try to convert to plaintext

param: string    $source
return: string    Plaintext string



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1