Öffentliche Methoden | |
handleText (&$token) | |
handleElement (&$token) | |
Öffentliche Methoden geerbt von HTMLPurifier_Injector | |
rewindOffset ($offset) | |
getRewindOffset () | |
prepare ($config, $context) | |
checkNeeded ($config) | |
allowsElement ($name) | |
handleText (&$token) | |
handleElement (&$token) | |
handleEnd (&$token) | |
notifyEnd ($token) | |
Datenfelder | |
$name = 'AutoParagraph' | |
$needed = array('p') | |
Datenfelder geerbt von HTMLPurifier_Injector | |
$name | |
$needed = array() | |
Private Methoden | |
_pStart () | |
_splitText ($data, &$result) | |
_isInline ($token) | |
_pLookAhead () | |
_checkNeedsP ($current) | |
Weitere Geerbte Elemente | |
Geschützte Methoden geerbt von HTMLPurifier_Injector | |
forward (&$i, &$current) | |
forwardUntilEndToken (&$i, &$current, &$nesting) | |
backward (&$i, &$current) | |
Geschützte Attribute geerbt von HTMLPurifier_Injector | |
$htmlDefinition | |
$currentNesting | |
$currentToken | |
$inputZipper | |
$rewindOffset = false | |
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.
Definiert in Zeile 9 der Datei 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 |
Definiert in Zeile 333 der Datei AutoParagraph.php.
Benutzt _isInline().
Wird benutzt von _pLookAhead().
|
private |
Returns true if passed token is inline (and, ergo, allowed in paragraph tags)
HTMLPurifier_Token | $token |
Definiert in Zeile 298 der Datei AutoParagraph.php.
Wird benutzt von _checkNeedsP() und handleElement().
|
private |
Looks ahead in the token list and determines whether or not we need to insert a
tag.
Definiert in Zeile 308 der Datei AutoParagraph.php.
Benutzt _checkNeedsP() und HTMLPurifier_Injector\forwardUntilEndToken().
Wird benutzt von handleElement() und handleText().
|
private |
Definiert in Zeile 24 der Datei AutoParagraph.php.
Wird benutzt von _splitText(), handleElement() und handleText().
|
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 |
Definiert in Zeile 212 der Datei AutoParagraph.php.
Benutzt _pStart().
Wird benutzt von handleText().
handleElement | ( | & | $token) |
HTMLPurifier_Token | $token |
Definiert in Zeile 112 der Datei AutoParagraph.php.
Benutzt _isInline(), _pLookAhead(), _pStart(), HTMLPurifier_Injector\allowsElement() und HTMLPurifier_Injector\backward().
handleText | ( | & | $token) |
HTMLPurifier_Token_Text | $token |
Definiert in Zeile 34 der Datei AutoParagraph.php.
Benutzt _pLookAhead(), _pStart(), _splitText(), HTMLPurifier_Injector\allowsElement() und HTMLPurifier_Injector\forwardUntilEndToken().
$name = 'AutoParagraph' |
string
Definiert in Zeile 14 der Datei AutoParagraph.php.
$needed = array('p') |
array
Definiert in Zeile 19 der Datei AutoParagraph.php.