HTMLPurifier_AttrValidator Class Reference

Validates the attributes of a token. More...

List of all members.

Public Member Functions

 validateToken (&$token, &$config, $context)
 Validates the attributes of a token, returning a modified token that has valid tokens.
 validateToken (&$token, &$config, $context)
 Validates the attributes of a token, returning a modified token that has valid tokens.


Detailed Description

Validates the attributes of a token.

Doesn't manage required attributes very well. The only reason we factored this out was because RemoveForeignElements also needed it besides ValidateAttributes.

Definition at line 8 of file AttrValidator.php.


Member Function Documentation

HTMLPurifier_AttrValidator::validateToken ( &$  token,
&$  config,
context 
)

Validates the attributes of a token, returning a modified token that has valid tokens.

Parameters:
$token Reference to token to validate. We require a reference because the operation this class performs on the token are not atomic, so the context CurrentToken to be updated throughout
$config Instance of HTMLPurifier_Config
$context Instance of HTMLPurifier_Context

Definition at line 21 of file AttrValidator.php.

References HTMLPurifier_IDAccumulator::build().

HTMLPurifier_AttrValidator::validateToken ( &$  token,
&$  config,
context 
)

Validates the attributes of a token, returning a modified token that has valid tokens.

Parameters:
$token Reference to token to validate. We require a reference because the operation this class performs on the token are not atomic, so the context CurrentToken to be updated throughout
$config Instance of HTMLPurifier_Config
$context Instance of HTMLPurifier_Context

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

References HTMLPurifier_IDAccumulator::build().


The documentation for this class was generated from the following files:
Generated on Thu Jun 19 18:47:29 2008 for HTMLPurifier by  doxygen 1.5.3