![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Base class for AFS spellcheck texts. More...
Public Member Functions | |
__construct ($text, $pre='') | |
Constructs instance. | |
get_text () | |
Retrieves text. | |
get_pre () | |
Retrieves prefix text. | |
accept (AfsSpellcheckTextVisitorInterface $visitor) | |
Accept visitors. |
Base class for AFS spellcheck texts.
It accepts AfsSpellcheckTextVisitorInterface visitor in order to retrieve raw and formatted spellcheck texts.
__construct | ( | $text, | |
$pre = '' |
|||
) |
Constructs instance.
$text | [in] text of the instance. |
$pre | [in] prefix text which should never be highlighted (see AfsSpellcheckMatch for more details) |
accept | ( | AfsSpellcheckTextVisitorInterface | $visitor | ) |
Accept visitors.
$visitor | [in] visitor which implements AfsSpellcheckTextVisitorInterface. |
Exception | when necessary method has not been implemented in visitor. |
get_pre | ( | ) |
Retrieves prefix text.
get_text | ( | ) |
Retrieves text.