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

Public Member Functions

 handleText (&$token)
 handleElement (&$token)

Data Fields

 $name = 'AutoParagraph'
 $needed = array('p')

Detailed Description

Injector that auto paragraphs text in the root node based on double-spacing.

Todo:

Ensure all states are unit tested, including variations as well.

Make a graph of the flow control for this Injector.

Definition at line 9 of file AutoParagraph.php.


Member Function Documentation

handleElement ( &$  token)

Handler that is called when a start or empty token is processed

Reimplemented from HTMLPurifier_Injector.

Definition at line 97 of file AutoParagraph.php.

Here is the call graph for this function:

handleText ( &$  token)

Handler that is called when a text token is processed

Reimplemented from HTMLPurifier_Injector.

Definition at line 21 of file AutoParagraph.php.

Here is the call graph for this function:


Field Documentation

$name = 'AutoParagraph'

Advisory name of injector, this is for friendly error messages

Reimplemented from HTMLPurifier_Injector.

Definition at line 12 of file AutoParagraph.php.

$needed = array('p')

Array of elements and attributes this injector creates and therefore need to be allowed by the definition. Takes form of array('element' => array('attr', 'attr2'), 'element2')

Reimplemented from HTMLPurifier_Injector.

Definition at line 13 of file AutoParagraph.php.


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