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

Implements spellcheck match. More...

Inheritance diagram for AfsSpellcheckMatch:
AfsSpellcheckBaseText

Public Member Functions

 __construct ($match_element)
 Constructs spellcheck match 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 match.

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

Constructor & Destructor Documentation

__construct (   $match_element)

Constructs spellcheck match instance.

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