HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_HTML_Nmtokens Class Reference

Validates contents based on NMTOKENS attribute type. More...

Inheritance diagram for HTMLPurifier_AttrDef_HTML_Nmtokens:
HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef_HTML_Class HTMLPurifier_AttrDef_HTML_Class

List of all members.

Public Member Functions

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

Protected Member Functions

 split ($string, $config, $context)
 Splits a space separated list of tokens into its constituent parts.
 filter ($tokens, $config, $context)
 Template method for removing certain tokens based on arbitrary criteria.
 split ($string, $config, $context)
 Splits a space separated list of tokens into its constituent parts.
 filter ($tokens, $config, $context)
 Template method for removing certain tokens based on arbitrary criteria.

Detailed Description

Validates contents based on NMTOKENS attribute type.

Definition at line 6 of file Nmtokens.php.


Member Function Documentation

HTMLPurifier_AttrDef_HTML_Nmtokens::filter ( tokens,
config,
context 
) [protected]

Template method for removing certain tokens based on arbitrary criteria.

Note:
If we wanted to be really functional, we'd do an array_filter with a callback. But... we're not.

Reimplemented in HTMLPurifier_AttrDef_HTML_Class, and HTMLPurifier_AttrDef_HTML_Class.

Definition at line 46 of file Nmtokens.php.

Referenced by validate().

HTMLPurifier_AttrDef_HTML_Nmtokens::filter ( tokens,
config,
context 
) [protected]

Template method for removing certain tokens based on arbitrary criteria.

Note:
If we wanted to be really functional, we'd do an array_filter with a callback. But... we're not.

Reimplemented in HTMLPurifier_AttrDef_HTML_Class, and HTMLPurifier_AttrDef_HTML_Class.

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

HTMLPurifier_AttrDef_HTML_Nmtokens::split ( string,
config,
context 
) [protected]

Splits a space separated list of tokens into its constituent parts.

Reimplemented in HTMLPurifier_AttrDef_HTML_Class, and HTMLPurifier_AttrDef_HTML_Class.

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

HTMLPurifier_AttrDef_HTML_Nmtokens::split ( string,
config,
context 
) [protected]

Splits a space separated list of tokens into its constituent parts.

Reimplemented in HTMLPurifier_AttrDef_HTML_Class, and HTMLPurifier_AttrDef_HTML_Class.

Definition at line 26 of file Nmtokens.php.

Referenced by validate().

HTMLPurifier_AttrDef_HTML_Nmtokens::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 9979 of file HTMLPurifier.standalone.php.

References $config, filter(), and split().

HTMLPurifier_AttrDef_HTML_Nmtokens::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 9 of file Nmtokens.php.

References $config, filter(), and split().


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