HTMLPurifier 4.4.0
HTMLPurifier_URIFilter_SafeIframe Class Reference

Implements safety checks for safe iframes. More...

Inheritance diagram for HTMLPurifier_URIFilter_SafeIframe:
HTMLPurifier_URIFilter HTMLPurifier_URIFilter

List of all members.

Public Member Functions

 prepare ($config)
 Performs initialization for the filter.
 filter (&$uri, $config, $context)
 Filter a URI object.
 prepare ($config)
 Performs initialization for the filter.
 filter (&$uri, $config, $context)
 Filter a URI object.

Public Attributes

 $name = 'SafeIframe'
 Unique identifier of filter.
 $always_load = true
 True if this filter should always be loaded (this permits a filter to be named Foo without the corresponding URI.Foo directive existing.)

Protected Attributes

 $regexp = NULL

Detailed Description

Implements safety checks for safe iframes.

Warning:
This filter is *critical* for ensuring that HTML.SafeIframe works safely.

Definition at line 9 of file SafeIframe.php.


Member Function Documentation

HTMLPurifier_URIFilter_SafeIframe::filter ( &$  uri,
config,
context 
)

Filter a URI object.

Parameters:
$uriReference to URI object variable
$configInstance of HTMLPurifier_Config
$contextInstance of HTMLPurifier_Context
Returns:
bool Whether or not to continue processing: false indicates URL is no good, true indicates continue processing. Note that all changes are committed directly on the URI object

Reimplemented from HTMLPurifier_URIFilter.

Definition at line 21 of file SafeIframe.php.

References $config.

HTMLPurifier_URIFilter_SafeIframe::filter ( &$  uri,
config,
context 
)

Filter a URI object.

Parameters:
$uriReference to URI object variable
$configInstance of HTMLPurifier_Config
$contextInstance of HTMLPurifier_Context
Returns:
bool Whether or not to continue processing: false indicates URL is no good, true indicates continue processing. Note that all changes are committed directly on the URI object

Reimplemented from HTMLPurifier_URIFilter.

Definition at line 17108 of file HTMLPurifier.standalone.php.

References $config.

HTMLPurifier_URIFilter_SafeIframe::prepare ( config)

Performs initialization for the filter.

If the filter returns false, this means that it shouldn't be considered active.

Reimplemented from HTMLPurifier_URIFilter.

Definition at line 17104 of file HTMLPurifier.standalone.php.

References $config.

HTMLPurifier_URIFilter_SafeIframe::prepare ( config)

Performs initialization for the filter.

If the filter returns false, this means that it shouldn't be considered active.

Reimplemented from HTMLPurifier_URIFilter.

Definition at line 17 of file SafeIframe.php.

References $config.


Member Data Documentation

HTMLPurifier_URIFilter_SafeIframe::$always_load = true

True if this filter should always be loaded (this permits a filter to be named Foo without the corresponding URI.Foo directive existing.)

Reimplemented from HTMLPurifier_URIFilter.

Definition at line 12 of file SafeIframe.php.

HTMLPurifier_URIFilter_SafeIframe::$name = 'SafeIframe'

Unique identifier of filter.

Reimplemented from HTMLPurifier_URIFilter.

Definition at line 11 of file SafeIframe.php.

HTMLPurifier_URIFilter_SafeIframe::$regexp = NULL [protected]

Definition at line 13 of file SafeIframe.php.


The documentation for this class was generated from the following files: