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

Public Member Functions

 __construct ($dtd_regex)
 
 validateChildren ($children, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_ChildDef
 getAllowedElements ($config)
 
 validateChildren ($children, $config, $context)
 

Data Fields

 $type = 'custom'
 
 $allow_empty = false
 
 $dtd_regex
 
- Data Fields inherited from HTMLPurifier_ChildDef
 $type
 
 $allow_empty
 
 $elements = array()
 

Protected Member Functions

 _compileRegex ()
 

Detailed Description

Custom validation class, accepts DTD child definitions

Warning
Currently this class is an all or nothing proposition, that is, it will only give a bool return value.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $dtd_regex)
Parameters
$dtd_regexAllowed child pattern from the DTD
Here is the call graph for this function:

Member Function Documentation

◆ _compileRegex()

_compileRegex ( )
protected

Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex)

Here is the caller graph for this function:

◆ validateChildren()

validateChildren (   $children,
  $config,
  $context 
)
Parameters
HTMLPurifier_Node[]$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool

Reimplemented from HTMLPurifier_ChildDef.

Field Documentation

◆ $allow_empty

$allow_empty = false

@type bool

◆ $dtd_regex

$dtd_regex

Allowed child pattern as defined by the DTD. @type string

◆ $type

$type = 'custom'

@type string


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