Moodle  2.2.1
http://www.collinsharper.com
HTMLPurifier_ChildDef_Table Class Reference
Inheritance diagram for HTMLPurifier_ChildDef_Table:
Collaboration diagram for HTMLPurifier_ChildDef_Table:

Public Member Functions

 __construct ()
 validateChildren ($tokens_of_children, $config, $context)

Data Fields

 $allow_empty = false
 $type = 'table'
 $elements

Detailed Description

Definition for tables

Definition at line 6 of file Table.php.


Constructor & Destructor Documentation

Definition at line 12 of file Table.php.


Member Function Documentation

validateChildren ( tokens_of_children,
config,
context 
)

Validates nodes according to definition and returns modification.

Parameters:
$tokens_of_childrenArray of HTMLPurifier_Token
$configHTMLPurifier_Config object
$contextHTMLPurifier_Context object
Returns:
bool true to leave nodes as is
bool false to remove parent node
array of replacement child tokens

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 13 of file Table.php.


Field Documentation

$allow_empty = false

Bool that indicates whether or not an empty array of children is okay

This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed.

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 8 of file Table.php.

$elements
Initial value:
 array('tr' => true, 'tbody' => true, 'thead' => true,
        'tfoot' => true, 'caption' => true, 'colgroup' => true, 'col' => true)

Lookup array of all elements that this definition could possibly allow

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 10 of file Table.php.

$type = 'table'

Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context.

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 9 of file Table.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations