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

Implements spellcheck text. More...

Inheritance diagram for AfsSpellcheckText:
AfsSpellcheckBaseText

Public Member Functions

 __construct ($text_element)
 Constructs spellcheck text instance.
- Public Member Functions inherited from AfsSpellcheckBaseText
 __construct ($text, $pre='')
 Constructs instance.
 get_text ()
 Retrieves text.
 get_pre ()
 Retrieves prefix text.
 accept (AfsSpellcheckTextVisitorInterface $visitor)
 Accept visitors.

Detailed Description

Implements spellcheck text.

When a query is composed of multiple words, instances of this class are created for each valid word (ie words with no suggested correction).

Constructor & Destructor Documentation

__construct (   $text_element)

Constructs spellcheck text instance.

Parameters
$text_element[in] a spellcheck text element with or without prefix text.