HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_URI_Host Class Reference

Validates a host according to the IPv4, IPv6 and DNS (future) specifications. More...

Inheritance diagram for HTMLPurifier_AttrDef_URI_Host:
HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

 __construct ()
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.
 __construct ()
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.

Protected Attributes

 $ipv4
 Instance of HTMLPurifier_AttrDef_URI_IPv4 sub-validator.
 $ipv6
 Instance of HTMLPurifier_AttrDef_URI_IPv6 sub-validator.

Detailed Description

Validates a host according to the IPv4, IPv6 and DNS (future) specifications.

Definition at line 6 of file Host.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_URI_Host::__construct ( )

Definition at line 19 of file Host.php.

HTMLPurifier_AttrDef_URI_Host::__construct ( )

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


Member Function Documentation

HTMLPurifier_AttrDef_URI_Host::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.

Definition at line 24 of file Host.php.

References $config, and $ipv4.

HTMLPurifier_AttrDef_URI_Host::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.

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

References $config, and $ipv4.


Member Data Documentation

HTMLPurifier_AttrDef_URI_Host::$ipv4 [protected]

Instance of HTMLPurifier_AttrDef_URI_IPv4 sub-validator.

Definition at line 12 of file Host.php.

Referenced by validate().

HTMLPurifier_AttrDef_URI_Host::$ipv6 [protected]

Instance of HTMLPurifier_AttrDef_URI_IPv6 sub-validator.

Definition at line 17 of file Host.php.


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