This object is the default input filter

uses the exceptions handler
uses implements the singleton pattern
uses check that the directory htmlpurifier exists
package OWR

 Methods

Cloning is denied This function can NOT be overloaded

__clone() 
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\Singleton::__clone()

Executed when an object is unserialized We register the new object

__wakeUp() 
Inherited
access public
author Pierre-Alain Mignot
inherited_from \OWR\Singleton::__wakeUp()

Instance getter This function can NOT be overloaded

iGet() : mixed
InheritedStatic
access public
static
author Pierre-Alain Mignot
inherited_from \OWR\Singleton::iGet()

Returns

mixedthe instance

Purify the given value

purify(string $str) : string
access public
author Pierre-Alain Mignot

Parameters

$str

string

the string to purify

Returns

stringthe purified string

Register function This function is called when an object is unserialized and is used to register the instance of the object This function can NOT be overloaded

register(mixed $instance) 
InheritedStatic
access public
static
author Pierre-Alain Mignot
inherited_from \OWR\Singleton::register()

Parameters

$instance

mixed

the instance to register

Constructor

__construct() 
access protected
author Pierre-Alain Mignot

 Properties

 

the HTMLPurifier instance

$_filter : mixed
access private
 

store instancied objects

$_instances : array
Inherited
access private
static
inherited_from \OWR\Singleton::$$_instances