callback - (callback) Callback triggered on every node. Passed the DOMDocument object and the DOMNode object. If the callback returns non-null, add this text to the output and skip further processing of the node. width - (integer) The wrapping width. Set to 0 to not wrap. nestingLimit - (integer) The limit on node nesting. If empty, no limit.
Property | Type | Description | |
---|---|---|---|
$_indent | integer | Current list indentation level. | |
$_linkList | array | The list of links contained in the message. | |
$_nestingLevel | integer | Current nesting level. | |
$_params | array | Filter parameters. |
Method | Description | |
---|---|---|
getPatterns ( ) : array | Returns a hash with replace patterns. | |
postProcess ( string $text ) : string | Executes any code necessary after applying the filter patterns. | |
preProcess ( string $text ) : string | Executes any code necessary before applying the filter patterns. |
Method | Description | |
---|---|---|
_buildLinkList ( DOMDocument $doc, DOMElement $node ) | Maintains an internal list of links to be displayed at the end of the text, with numeric indices to the original point in the text they appeared. | |
_node ( DOMDocument $doc, DOMElement $node ) : string | Process DOM node. |
protected _buildLinkList ( DOMDocument $doc, DOMElement $node ) | ||
$doc | DOMDocument | Document node. |
$node | DOMElement | Element node. |
public getPatterns ( ) : array | ||
return | array | Patterns hash. |
public postProcess ( string $text ) : string | ||
$text | string | The text after the filtering. |
return | string | The modified text. |
public preProcess ( string $text ) : string | ||
$text | string | The text before the filtering. |
return | string | The modified text. |
protected array $_linkList | ||
return | array |
protected int $_nestingLevel | ||
return | integer |