API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrDef_HTML_Nmtokens Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_HTML_Nmtokens:
Collaboration diagram for HTMLPurifier_AttrDef_HTML_Nmtokens:

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

- Data Fields inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 

Detailed Description

Validates contents based on NMTOKENS attribute type.

Member Function Documentation

◆ filter()

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.
Parameters
array$tokens
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
array

Reimplemented in HTMLPurifier_AttrDef_HTML_Class.

Here is the caller graph for this function:

◆ split()

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

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

Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
array

Reimplemented in HTMLPurifier_AttrDef_HTML_Class.

Here is the caller graph for this function:

◆ validate()

validate (   $string,
  $config,
  $context 
)
Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Reimplemented from HTMLPurifier_AttrDef.

Here is the call graph for this function:

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