XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_AttrDef_HTML_Nmtokens Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_HTML_Nmtokens:
Inheritance graph

Public Member Functions

 validate ($string, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 make ($string)
 
 parseCDATA ($string)
 
 validate ($string, $config, $context)
 

Protected Member Functions

 filter ($tokens, $config, $context)
 
 split ($string, $config, $context)
 
- Protected Member Functions inherited from HTMLPurifier_AttrDef
 expandCSSEscape ($string)
 
 mungeRgb ($string)
 

Additional Inherited Members

- Public Attributes inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 

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.

Definition at line 46 of file Nmtokens.php.

Referenced by validate().

Here is the caller graph for this function:

HTMLPurifier_AttrDef_HTML_Nmtokens::split (   $string,
  $config,
  $context 
)
protected

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

Definition at line 26 of file Nmtokens.php.

Referenced by validate().

Here is the caller graph for this function:

HTMLPurifier_AttrDef_HTML_Nmtokens::validate (   $string,
  $config,
  $context 
)

Definition at line 9 of file Nmtokens.php.

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

Here is the call graph for this function:


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