HTML Purifier's internal representation of a URI.
| Methods | ||
|---|---|---|
| 
					
	public
					
					
				 | __construct(string $scheme, string $userinfo, string $host, int $port, string $path, string $query, string $fragment) | # | 
| 
					
	public
					
					
				 | getSchemeObj(HTMLPurifier_Config $config, HTMLPurifier_Context $context): HTMLPurifier_URIScheme
		Retrieves a scheme object corresponding to the URI's scheme/default
	 Retrieves a scheme object corresponding to the URI's scheme/default ReturnsScheme object appropriate for validating this URI | # | 
| 
					
	public
					
					
				 | validate(HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool
		Generic validation method applicable for all schemes. May modify
this URI in order to get it into a compliant form.
	 Generic validation method applicable for all schemes. May modify this URI in order to get it into a compliant form. ReturnsTrue if validation/filtering succeeds, false if failure | # | 
| 
					
	public
					
					
				 | toString(): string
		Convert URI back to string
	 Convert URI back to string ReturnsURI appropriate for output | # | 
| 
					
	public
					
					
				 | isLocal(HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool
		Returns true if this URL might be considered a 'local' URL given
the current context.  This is true when the host is…
	 Returns true if this URL might be considered a 'local' URL given the current context. This is true when the host is null, or when it matches the host supplied to the configuration. Note that this does not do any scheme checking, so it is mostly only appropriate for metadata that doesn't care about protocol security. isBenign is probably what you actually want. | # | 
| 
					
	public
					
					
				 | isBenign(HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool
		Returns true if this URL should be considered a 'benign' URL,
that is:
	 Returns true if this URL should be considered a 'benign' URL, that is: 
 | # | 
| Properties | |||
|---|---|---|---|
| 
	public
					
					
				 |  | $scheme | # | 
| 
	public
					
					
				 |  | $userinfo | # | 
| 
	public
					
					
				 |  | $host | # | 
| 
	public
					
					
				 |  | $port | # | 
| 
	public
					
					
				 |  | $path | # | 
| 
	public
					
					
				 |  | $query | # | 
| 
	public
					
					
				 |  | $fragment | # |