Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_AttrValidator Class Reference

Public Member Functions

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

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

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

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

Parameters:
$tokenReference 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
$configInstance of HTMLPurifier_Config
$contextInstance of HTMLPurifier_Context

Definition at line 21 of file AttrValidator.php.

Here is the call graph for this function:


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