![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Title and content text manager. More...
Public Member Functions | |
__construct (array $json_reply) | |
Construct text manager instance. | |
visit_text (AfsTextVisitorInterface $visitor) | |
Visit all text entries. | |
get_texts () | |
Retrieves all text entries. |
Title and content text manager.
Provided a JSON result, this manager allows simple way to present result title or result content.
__construct | ( | array | $json_reply | ) |
Construct text manager instance.
Each portion of text (text, match and truncate) is extracted from input parameter and stored with appropriate text type.
Two methods are available to traverse these portions of text:
$json_reply | [in] corresponds to one title or abstract reply in JSON format. |
Exception | when provided json_reply parameter is invalid. |
get_texts | ( | ) |
Retrieves all text entries.
visit_text | ( | AfsTextVisitorInterface | $visitor | ) |
Visit all text entries.
$visitor | [in] Visitor used to traverse all text entries. |