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

Public Member Functions

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

Data Fields

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

Protected Attributes

 $whitespace = false
 

Detailed Description

Definition that allows a set of elements, but disallows empty children.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $elements)
Parameters
array | string$elementsList of allowed element names (lowercase).

Member Function Documentation

◆ validateChildren()

validateChildren (   $children,
  $config,
  $context 
)
Parameters
array$children
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
array

Reimplemented from HTMLPurifier_ChildDef.

Reimplemented in HTMLPurifier_ChildDef_Optional, and HTMLPurifier_ChildDef_StrictBlockquote.

Field Documentation

◆ $allow_empty

$allow_empty = false

@type bool

◆ $elements

$elements = array()

Lookup table of allowed elements. @type array

◆ $type

$type = 'required'

@type string

◆ $whitespace

$whitespace = false
protected

Whether or not the last passed node was all whitespace. @type bool


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