ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HTMLPurifier_HTMLModule_Tidy_Strict Class Reference
+ Inheritance diagram for HTMLPurifier_HTMLModule_Tidy_Strict:
+ Collaboration diagram for HTMLPurifier_HTMLModule_Tidy_Strict:

Public Member Functions

 makeFixes ()
 Defines all fixes the module will perform in a compact associative array of fix name to fix implementation.
 getChildDef ($def)
 Retrieves a proper HTMLPurifier_ChildDef subclass based on content_model and content_model_type member variables of the HTMLPurifier_ElementDef class.

Data Fields

 $name = 'Tidy_Strict'
 $defaultLevel = 'light'
 $defines_child_def = true

Detailed Description

Definition at line 3 of file Strict.php.

Member Function Documentation

HTMLPurifier_HTMLModule_Tidy_Strict::getChildDef (   $def)

Retrieves a proper HTMLPurifier_ChildDef subclass based on content_model and content_model_type member variables of the HTMLPurifier_ElementDef class.

There is a similar function in HTMLPurifier_HTMLDefinition.

Parameters
$defHTMLPurifier_ElementDef instance
Returns
HTMLPurifier_ChildDef subclass

Reimplemented from HTMLPurifier_HTMLModule.

Definition at line 15 of file Strict.php.

{
if ($def->content_model_type != 'strictblockquote') return parent::getChildDef($def);
return new HTMLPurifier_ChildDef_StrictBlockquote($def->content_model);
}
HTMLPurifier_HTMLModule_Tidy_Strict::makeFixes ( )

Defines all fixes the module will perform in a compact associative array of fix name to fix implementation.

Reimplemented from HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4.

Definition at line 8 of file Strict.php.

{
$r['blockquote#content_model_type'] = 'strictblockquote';
return $r;
}

Field Documentation

HTMLPurifier_HTMLModule_Tidy_Strict::$defaultLevel = 'light'

Definition at line 6 of file Strict.php.

HTMLPurifier_HTMLModule_Tidy_Strict::$defines_child_def = true

Definition at line 14 of file Strict.php.

HTMLPurifier_HTMLModule_Tidy_Strict::$name = 'Tidy_Strict'

Definition at line 5 of file Strict.php.


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