Antidot PHP API  version 0.16.0
##PHP API to simplify integration of Antidot components
 All Classes Files Functions Variables Groups Pages
Public Member Functions | List of all members
BoldFilterNode Class Reference

Filter node and retrieve text node content between bold HTML tags. More...

Inheritance diagram for BoldFilterNode:
FilterNode

Public Member Functions

 __construct ($local_name, $ns_uri=null)
 Construct new instance.
 format_text ($text)
 Embrase text node content between bold HTML tags.
- Public Member Functions inherited from FilterNode
 get_id ()
 Retrieves filter identifier.
 match ($node)
 Checks whether provided node should treated by this filter.

Detailed Description

Filter node and retrieve text node content between bold HTML tags.

Constructor & Destructor Documentation

__construct (   $local_name,
  $ns_uri = null 
)

Construct new instance.

Parameters
$local_name[in] DOMElement local name.
$ns_uri[in] namespace URI of the DOMElement (default: null).

Reimplemented from FilterNode.

Member Function Documentation

format_text (   $text)
final

Embrase text node content between bold HTML tags.

Parameters
$text[in] text node content.
Returns
'<b>' . $text . '</b>'

Reimplemented from FilterNode.