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

Public Member Functions

 makeFixes ()
 Defines all fixes the module will perform in a compact associative array of fix name to fix implementation.
- Public Member Functions inherited from HTMLPurifier_HTMLModule_Tidy
 setup ($config)
 Lazy load constructs the module by determining the necessary fixes to create and then delegating to the populate() function.
 getFixesForLevel ($level)
 Retrieves all fixes per a level, returning fixes for that specific level as well as all levels below it.
 makeFixesForLevel ($fixes)
 Dynamically populates the $fixesForLevel member variable using the fixes array.
 populate ($fixes)
 Populates the module with transforms and other special-case code based on a list of fixes passed to it.
 getFixType ($name)
 Parses a fix name and determines what kind of fix it is, as well as other information defined by the fix.
- Public Member Functions inherited from HTMLPurifier_HTMLModule
 getChildDef ($def)
 Retrieves a proper HTMLPurifier_ChildDef subclass based on content_model and content_model_type member variables of the HTMLPurifier_ElementDef class.
 addElement ($element, $type, $contents, $attr_includes=array(), $attr=array())
 Convenience function that sets up a new element.
 addBlankElement ($element)
 Convenience function that creates a totally blank, non-standalone element.
 addElementToContentSet ($element, $type)
 Convenience function that registers an element to a content set.
 parseContents ($contents)
 Convenience function that transforms single-string contents into separate content model and content model type.
 mergeInAttrIncludes (&$attr, $attr_includes)
 Convenience function that merges a list of attribute includes into an attribute array.
 makeLookup ($list)
 Convenience function that generates a lookup table with boolean true as value.

Data Fields

 $name = 'Tidy_Proprietary'
 $defaultLevel = 'light'
- Data Fields inherited from HTMLPurifier_HTMLModule_Tidy
 $levels = array(0 => 'none', 'light', 'medium', 'heavy')
 List of supported levels.
 $defaultLevel = null
 Default level to place all fixes in.
 $fixesForLevel
 Lists of fixes used by getFixesForLevel().
- Data Fields inherited from HTMLPurifier_HTMLModule
 $name
 Short unique string identifier of the module.
 $elements = array()
 Informally, a list of elements this module changes.
 $info = array()
 Associative array of element names to element definitions.
 $content_sets = array()
 Associative array of content set names to content set additions.
 $attr_collections = array()
 Associative array of attribute collection names to attribute collection additions.
 $info_tag_transform = array()
 Associative array of deprecated tag name to HTMLPurifier_TagTransform.
 $info_attr_transform_pre = array()
 List of HTMLPurifier_AttrTransform to be performed before validation.
 $info_attr_transform_post = array()
 List of HTMLPurifier_AttrTransform to be performed after validation.
 $info_injector = array()
 List of HTMLPurifier_Injector to be performed during well-formedness fixing.
 $defines_child_def = false
 Boolean flag that indicates whether or not getChildDef is implemented.
 $safe = true
 Boolean flag whether or not this module is safe.

Detailed Description

Definition at line 3 of file Proprietary.php.

Member Function Documentation

HTMLPurifier_HTMLModule_Tidy_Proprietary::makeFixes ( )

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

Reimplemented from HTMLPurifier_HTMLModule_Tidy.

Definition at line 9 of file Proprietary.php.

{
$r = array();
$r['table@background'] = new HTMLPurifier_AttrTransform_Background();
$r['td@background'] = new HTMLPurifier_AttrTransform_Background();
$r['th@background'] = new HTMLPurifier_AttrTransform_Background();
$r['tr@background'] = new HTMLPurifier_AttrTransform_Background();
$r['thead@background'] = new HTMLPurifier_AttrTransform_Background();
$r['tfoot@background'] = new HTMLPurifier_AttrTransform_Background();
$r['tbody@background'] = new HTMLPurifier_AttrTransform_Background();
return $r;
}

Field Documentation

HTMLPurifier_HTMLModule_Tidy_Proprietary::$defaultLevel = 'light'

Definition at line 7 of file Proprietary.php.

HTMLPurifier_HTMLModule_Tidy_Proprietary::$name = 'Tidy_Proprietary'

Definition at line 6 of file Proprietary.php.


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