HTMLPurifier 4.4.0
HTMLPurifier_URIScheme_data Class Reference

Implements data: URI for base64 encoded images supported by GD. More...

Inheritance diagram for HTMLPurifier_URIScheme_data:
HTMLPurifier_URIScheme HTMLPurifier_URIScheme

List of all members.

Public Member Functions

 doValidate (&$uri, $config, $context)
 Validates the components of a URI for a specific scheme.
 muteErrorHandler ($errno, $errstr)
 doValidate (&$uri, $config, $context)
 Validates the components of a URI for a specific scheme.
 muteErrorHandler ($errno, $errstr)

Public Attributes

 $browsable = true
 Whether or not URIs of this schem are locatable by a browser http and ftp are accessible, while mailto and news are not.
 $allowed_types
 $may_omit_host = true
 Whether or not the URI may omit a hostname when the scheme is explicitly specified, ala file:///path/to/file.

Detailed Description

Implements data: URI for base64 encoded images supported by GD.

Definition at line 6 of file data.php.


Member Function Documentation

HTMLPurifier_URIScheme_data::doValidate ( &$  uri,
config,
context 
)

Validates the components of a URI for a specific scheme.

Parameters:
$uriReference to a HTMLPurifier_URI object
$configHTMLPurifier_Config object
$contextHTMLPurifier_Context object
Returns:
Bool success or failure

Reimplemented from HTMLPurifier_URIScheme.

Definition at line 20 of file data.php.

References $data.

HTMLPurifier_URIScheme_data::doValidate ( &$  uri,
config,
context 
)

Validates the components of a URI for a specific scheme.

Parameters:
$uriReference to a HTMLPurifier_URI object
$configHTMLPurifier_Config object
$contextHTMLPurifier_Context object
Returns:
Bool success or failure

Reimplemented from HTMLPurifier_URIScheme.

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

References $data.

HTMLPurifier_URIScheme_data::muteErrorHandler ( errno,
errstr 
)

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

HTMLPurifier_URIScheme_data::muteErrorHandler ( errno,
errstr 
)

Definition at line 93 of file data.php.


Member Data Documentation

HTMLPurifier_URIScheme_data::$allowed_types
Initial value:
 array(
        
        
        'image/jpeg' => true,
        'image/gif' => true,
        'image/png' => true,
        )

Definition at line 9 of file data.php.

HTMLPurifier_URIScheme_data::$browsable = true

Whether or not URIs of this schem are locatable by a browser http and ftp are accessible, while mailto and news are not.

Reimplemented from HTMLPurifier_URIScheme.

Definition at line 8 of file data.php.

HTMLPurifier_URIScheme_data::$may_omit_host = true

Whether or not the URI may omit a hostname when the scheme is explicitly specified, ala file:///path/to/file.

As of writing, 'file' is the only scheme that browsers support his properly.

Reimplemented from HTMLPurifier_URIScheme.

Definition at line 18 of file data.php.


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