![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Filter node and retrieve node text contents. More...
Public Member Functions | |
__construct ($local_name, $ns_uri=null) | |
Construct new instance. | |
get_id () | |
Retrieves filter identifier. | |
match ($node) | |
Checks whether provided node should treated by this filter. | |
format_text ($text) | |
Format text node content. |
Filter node and retrieve node text contents.
__construct | ( | $local_name, | |
$ns_uri = null |
|||
) |
Construct new instance.
$local_name | [in] DOMElement local name. |
$ns_uri | [in] namespace URI of the DOMElement (default: null). |
Reimplemented in TruncatedFilterNode, and BoldFilterNode.
format_text | ( | $text | ) |
Format text node content.
Default implementation does nothing. You can extends this class and overload this method to do specific formatting.
$text | [in] text node content. |
Reimplemented in TruncatedFilterNode, and BoldFilterNode.
|
final |
Retrieves filter identifier.
Internal use only.
|
final |
Checks whether provided node should treated by this filter.
Both local name and namespace must match.
$node | [in] DOMElement to test. |
True
when provided node matches this filter, false
otherwise.