Class HTMLPurifier_URIScheme

Description

Validator for the components of a URI for a specific scheme

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 7160)


	
			
Direct descendents
Class Description
HTMLPurifier_URIScheme_data Implements data: URI for base64 encoded images supported by GD.
HTMLPurifier_URIScheme_file Validates file as defined by RFC 1630 and RFC 1738.
HTMLPurifier_URIScheme_ftp Validates ftp (File Transfer Protocol) URIs as defined by generic RFC 1738.
HTMLPurifier_URIScheme_http Validates http (HyperText Transfer Protocol) as defined by RFC 2616
HTMLPurifier_URIScheme_mailto Validates mailto (for E-mail) according to RFC 2368
HTMLPurifier_URIScheme_news Validates news (Usenet) as defined by generic RFC 1738
HTMLPurifier_URIScheme_nntp Validates nntp (Network News Transfer Protocol) as defined by generic RFC 1738
Variable Summary
Method Summary
Bool validate ($uri &$uri, $config $config, $context $context)
Variables
mixed $browsable = false (line 7172)

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

  • access: public

Redefined in descendants as:
mixed $default_port = null (line 7166)

Scheme's default port (integer)

  • access: public

Redefined in descendants as:
mixed $hierarchical = false (line 7178)

Whether or not the URI always uses <hier_part>, resolves edge cases

with making relative URIs absolute

  • access: public

Redefined in descendants as:
Methods
validate (line 7189)

Validates the components of a URI

  • return: success or failure
  • access: public
Bool validate ($uri &$uri, $config $config, $context $context)
  • $uri &$uri: Instance of HTMLPurifier_URI
  • $config $config: HTMLPurifier_Config object
  • $context $context: HTMLPurifier_Context object

Redefined in descendants as:

Documentation generated on Sun, 06 Mar 2011 00:24:14 -0500 by phpDocumentor 1.4.3