HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_HTML_LinkTypes Class Reference

Validates a rel/rev link attribute against a directive of allowed values. More...

Inheritance diagram for HTMLPurifier_AttrDef_HTML_LinkTypes:
HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

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

Protected Attributes

 $name
 Name config attribute to pull.

Detailed Description

Validates a rel/rev link attribute against a directive of allowed values.

Note:
We cannot use Enum because link types allow multiple values.
Assumes link types are ASCII text

Definition at line 9 of file LinkTypes.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_HTML_LinkTypes::__construct ( name)

Definition at line 15 of file LinkTypes.php.

References $name.

HTMLPurifier_AttrDef_HTML_LinkTypes::__construct ( name)

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

References $name.


Member Function Documentation

HTMLPurifier_AttrDef_HTML_LinkTypes::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 28 of file LinkTypes.php.

References $config, and HTMLPurifier_AttrDef::parseCDATA().

HTMLPurifier_AttrDef_HTML_LinkTypes::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 10313 of file HTMLPurifier.standalone.php.

References $config, and HTMLPurifier_AttrDef::parseCDATA().


Member Data Documentation

HTMLPurifier_AttrDef_HTML_LinkTypes::$name [protected]

Name config attribute to pull.

Definition at line 13 of file LinkTypes.php.

Referenced by __construct().


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