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
AfsSpellcheckTextManager Class Reference

Spellcheck manager for simple texts and matched texts. More...

Public Member Functions

 __construct (array $json_reply)
 Constructs spellcheck text manager instance.
 visit_text (AfsSpellcheckTextVisitorInterface $visitor)
 Visit all text entries.

Detailed Description

Spellcheck manager for simple texts and matched texts.

Constructor & Destructor Documentation

__construct ( array  $json_reply)

Constructs spellcheck text manager instance.

Each portion of spellcheck text (text, match) is extracted from input parameter and stored with appropriate text type.

Parameters
$json_reply[in] corresponds to one spellcheck reply in JSON format.
Exceptions
Exceptionwhen json_reply parameter is invalid.

Member Function Documentation

visit_text ( AfsSpellcheckTextVisitorInterface  $visitor)

Visit all text entries.

Parameters
$visitor[in] Visitor used to traverse all text entries.
Returns
concatenated raw and formatted texts stored in AfsRawAndFormattedText object.