ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HTMLPurifier_HTMLModule_Tidy_Strict Class Reference
+ Inheritance diagram for HTMLPurifier_HTMLModule_Tidy_Strict:
+ Collaboration diagram for HTMLPurifier_HTMLModule_Tidy_Strict:

Public Member Functions

 makeFixes ()
 
 getChildDef ($def)
 
- Public Member Functions inherited from HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4
 makeFixes ()
 
- 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. More...
 
 getFixesForLevel ($level)
 Retrieves all fixes per a level, returning fixes for that specific level as well as all levels below it. More...
 
 makeFixesForLevel ($fixes)
 Dynamically populates the $fixesForLevel member variable using the fixes array. More...
 
 populate ($fixes)
 Populates the module with transforms and other special-case code based on a list of fixes passed to it. More...
 
 getFixType ($name)
 Parses a fix name and determines what kind of fix it is, as well as other information defined by the fix. More...
 
 makeFixes ()
 Defines all fixes the module will perform in a compact associative array of fix name to fix implementation. More...
 
- 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. More...
 
 addElement ($element, $type, $contents, $attr_includes=array(), $attr=array())
 Convenience function that sets up a new element. More...
 
 addBlankElement ($element)
 Convenience function that creates a totally blank, non-standalone element. More...
 
 addElementToContentSet ($element, $type)
 Convenience function that registers an element to a content set. More...
 
 parseContents ($contents)
 Convenience function that transforms single-string contents into separate content model and content model type. More...
 
 mergeInAttrIncludes (&$attr, $attr_includes)
 Convenience function that merges a list of attribute includes into an attribute array. More...
 
 makeLookup ($list)
 Convenience function that generates a lookup table with boolean true as value. More...
 
 setup ($config)
 Lazy load construction of the module after determining whether or not it's needed, and also when a finalized configuration object is available. More...
 

Data Fields

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

Detailed Description

Definition at line 3 of file Strict.php.

Member Function Documentation

◆ getChildDef()

HTMLPurifier_HTMLModule_Tidy_Strict::getChildDef (   $def)
Parameters
HTMLPurifier_ElementDef$def
Returns
HTMLPurifier_ChildDef_StrictBlockquote

Definition at line 34 of file Strict.php.

References $def.

35  {
36  if ($def->content_model_type != 'strictblockquote') {
37  return parent::getChildDef($def);
38  }
39  return new HTMLPurifier_ChildDef_StrictBlockquote($def->content_model);
40  }
Takes the contents of blockquote when in strict and reformats for validation.
$def
Definition: croninfo.php:21

◆ makeFixes()

HTMLPurifier_HTMLModule_Tidy_Strict::makeFixes ( )
Returns
array

Definition at line 18 of file Strict.php.

References $r.

19  {
20  $r = parent::makeFixes();
21  $r['blockquote#content_model_type'] = 'strictblockquote';
22  return $r;
23  }
$r
Definition: example_031.php:79

Field Documentation

◆ $defaultLevel

HTMLPurifier_HTMLModule_Tidy_Strict::$defaultLevel = 'light'

string

Definition at line 13 of file Strict.php.

◆ $defines_child_def

HTMLPurifier_HTMLModule_Tidy_Strict::$defines_child_def = true

bool

Definition at line 28 of file Strict.php.

◆ $name

HTMLPurifier_HTMLModule_Tidy_Strict::$name = 'Tidy_Strict'

string

Definition at line 8 of file Strict.php.


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