HTMLPurifier 4.4.0
HTMLPurifier_HTMLModule_Text Class Reference

XHTML 1.1 Text Module, defines basic text containers. More...

Inheritance diagram for HTMLPurifier_HTMLModule_Text:
HTMLPurifier_HTMLModule HTMLPurifier_HTMLModule

List of all members.

Public Member Functions

 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.
 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.

Public Attributes

 $name = 'Text'
 Short unique string identifier of the module.
 $content_sets
 Associative array of content set names to content set additions.

Detailed Description

XHTML 1.1 Text Module, defines basic text containers.

Core Module.

Note:
In the normative XML Schema specification, this module is further abstracted into the following modules:
  • Block Phrasal (address, blockquote, pre, h1, h2, h3, h4, h5, h6)
  • Block Structural (div, p)
  • Inline Phrasal (abbr, acronym, cite, code, dfn, em, kbd, q, samp, strong, var)
  • Inline Structural (br, span) This module, functionally, does not distinguish between these sub-modules, but the code is internally structured to reflect these distinctions.

Definition at line 15 of file Text.php.


Member Function Documentation

HTMLPurifier_HTMLModule_Text::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.

Parameters:
$configInstance of HTMLPurifier_Config

Reimplemented from HTMLPurifier_HTMLModule.

Definition at line 23 of file Text.php.

References HTMLPurifier_HTMLModule::addElement(), and HTMLPurifier_HTMLModule::makeLookup().

HTMLPurifier_HTMLModule_Text::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.

Parameters:
$configInstance of HTMLPurifier_Config

Reimplemented from HTMLPurifier_HTMLModule.

Definition at line 13475 of file HTMLPurifier.standalone.php.

References HTMLPurifier_HTMLModule::addElement(), and HTMLPurifier_HTMLModule::makeLookup().


Member Data Documentation

HTMLPurifier_HTMLModule_Text::$content_sets
Initial value:
 array(
        'Flow' => 'Heading | Block | Inline'
    )

Associative array of content set names to content set additions.

This is commonly used to, say, add an A element to the Inline content set. This corresponds to an internal variable $content_sets and NOT info_content_sets member variable of HTMLDefinition.

Reimplemented from HTMLPurifier_HTMLModule.

Definition at line 19 of file Text.php.

HTMLPurifier_HTMLModule_Text::$name = 'Text'

Short unique string identifier of the module.

Reimplemented from HTMLPurifier_HTMLModule.

Definition at line 18 of file Text.php.


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