| ILIAS
    release_5-3 Revision v5.3.23-19-g915713cf615
    | 
Injector that auto paragraphs text in the root node based on double-spacing. More...
 Inheritance diagram for HTMLPurifier_Injector_AutoParagraph:
 Inheritance diagram for HTMLPurifier_Injector_AutoParagraph: Collaboration diagram for HTMLPurifier_Injector_AutoParagraph:
 Collaboration diagram for HTMLPurifier_Injector_AutoParagraph:| Public Member Functions | |
| handleText (&$token) | |
| handleElement (&$token) | |
|  Public Member Functions inherited from HTMLPurifier_Injector | |
| rewindOffset ($offset) | |
| Rewind to a spot to re-perform processing.  More... | |
| getRewindOffset () | |
| Retrieves rewind offset, and then unsets it.  More... | |
| prepare ($config, $context) | |
| Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector.  More... | |
| checkNeeded ($config) | |
| This function checks if the HTML environment will work with the Injector: if p tags are not allowed, the Auto-Paragraphing injector should not be enabled.  More... | |
| allowsElement ($name) | |
| Tests if the context node allows a certain element.  More... | |
| handleText (&$token) | |
| Handler that is called when a text token is processed.  More... | |
| handleElement (&$token) | |
| Handler that is called when a start or empty token is processed.  More... | |
| handleEnd (&$token) | |
| Handler that is called when an end token is processed.  More... | |
| notifyEnd ($token) | |
| Notifier that is called when an end token is processed.  More... | |
| Data Fields | |
| $name = 'AutoParagraph' | |
| @type string  More... | |
| $needed = array('p') | |
| @type array  More... | |
|  Data Fields inherited from HTMLPurifier_Injector | |
| $name | |
| Advisory name of injector, this is for friendly error messages.  More... | |
| $needed = array() | |
| Array of elements and attributes this injector creates and therefore need to be allowed by the definition.  More... | |
| Private Member Functions | |
| _pStart () | |
| _splitText ($data, &$result) | |
| Splits up a text in paragraph tokens and appends them to the result stream that will replace the original.  More... | |
| _isInline ($token) | |
| Returns true if passed token is inline (and, ergo, allowed in paragraph tags)  More... | |
| _pLookAhead () | |
| Looks ahead in the token list and determines whether or not we need to insert a.  More... | |
| _checkNeedsP ($current) | |
| Determines if a particular token requires an earlier inline token to get a paragraph.  More... | |
| Additional Inherited Members | |
|  Protected Member Functions inherited from HTMLPurifier_Injector | |
| forward (&$i, &$current) | |
| Iterator function, which starts with the next token and continues until you reach the end of the input tokens.  More... | |
| forwardUntilEndToken (&$i, &$current, &$nesting) | |
| Similar to _forward, but accepts a third parameter $nesting (which should be initialized at 0) and stops when we hit the end tag for the node $this->inputIndex starts in.  More... | |
| backward (&$i, &$current) | |
| Iterator function, starts with the previous token and continues until you reach the beginning of input tokens.  More... | |
|  Protected Attributes inherited from HTMLPurifier_Injector | |
| $htmlDefinition | |
| @type HTMLPurifier_HTMLDefinition  More... | |
| $currentNesting | |
| Reference to CurrentNesting variable in Context.  More... | |
| $currentToken | |
| Reference to current token.  More... | |
| $inputZipper | |
| Reference to InputZipper variable in Context.  More... | |
| $rewindOffset = false | |
| Number of elements to rewind backwards (relative).  More... | |
Injector that auto paragraphs text in the root node based on double-spacing.
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.
| 
 | private | 
Determines if a particular token requires an earlier inline token to get a paragraph.
This should be used with _forwardUntilEndToken
| HTMLPurifier_Token | $current | 
Definition at line 333 of file AutoParagraph.php.
References $current, and _isInline().
Referenced by _pLookAhead().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Returns true if passed token is inline (and, ergo, allowed in paragraph tags)
| HTMLPurifier_Token | $token | 
Definition at line 298 of file AutoParagraph.php.
Referenced by _checkNeedsP(), and handleElement().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Looks ahead in the token list and determines whether or not we need to insert a.
tag.
Definition at line 308 of file AutoParagraph.php.
References $current, $i, $ok, $result, _checkNeedsP(), and HTMLPurifier_Injector\forwardUntilEndToken().
Referenced by handleElement(), and handleText().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 24 of file AutoParagraph.php.
Referenced by _splitText(), handleElement(), and handleText().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Splits up a text in paragraph tokens and appends them to the result stream that will replace the original.
| string | $data | String text data that will be processed into paragraphs | 
| HTMLPurifier_Token[] | $result | Reference to array of tokens that the tags will be appended onto | 
Definition at line 212 of file AutoParagraph.php.
References $data, $i, $result, and _pStart().
Referenced by handleText().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| HTMLPurifier_Injector_AutoParagraph::handleElement | ( | & | $token | ) | 
| HTMLPurifier_Token | $token | 
Reimplemented from HTMLPurifier_Injector.
Definition at line 112 of file AutoParagraph.php.
References $i, _isInline(), _pLookAhead(), _pStart(), HTMLPurifier_Injector\allowsElement(), and HTMLPurifier_Injector\backward().
 Here is the call graph for this function:
 Here is the call graph for this function:| HTMLPurifier_Injector_AutoParagraph::handleText | ( | & | $token | ) | 
| HTMLPurifier_Token_Text | $token | 
Reimplemented from HTMLPurifier_Injector.
Definition at line 34 of file AutoParagraph.php.
References $current, $i, $text, _pLookAhead(), _pStart(), _splitText(), HTMLPurifier_Injector\allowsElement(), and HTMLPurifier_Injector\forwardUntilEndToken().
 Here is the call graph for this function:
 Here is the call graph for this function:| HTMLPurifier_Injector_AutoParagraph::$name = 'AutoParagraph' | 
@type string
Definition at line 14 of file AutoParagraph.php.
| HTMLPurifier_Injector_AutoParagraph::$needed = array('p') | 
@type array
Definition at line 19 of file AutoParagraph.php.