Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_AttrDef_URI Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_URI:
Collaboration diagram for HTMLPurifier_AttrDef_URI:

Public Member Functions

 __construct ($embeds_resource=false)
 make ($string)
 validate ($uri, $config, $context)

Protected Attributes

 $parser
 $embedsResource

Detailed Description

Validates a URI as defined by RFC 3986.

Note:
Scheme-specific mechanics deferred to HTMLPurifier_URIScheme

Definition at line 7 of file URI.php.


Constructor & Destructor Documentation

__construct ( embeds_resource = false)
Parameters:
$embeds_resource_resourceDoes the URI here result in an extra HTTP request?

Definition at line 16 of file URI.php.


Member Function Documentation

make ( string)

Factory method for creating this class from a string.

Parameters:
$stringString construction info
Returns:
Created AttrDef object corresponding to $string

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 21 of file URI.php.

validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Reimplemented in HTMLPurifier_AttrDef_CSS_URI.

Definition at line 26 of file URI.php.

Here is the call graph for this function:


Field Documentation

$embedsResource [protected]

Definition at line 11 of file URI.php.

$parser [protected]

Definition at line 10 of file URI.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations