![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Manages one or more spellcheck reply. More...
Public Member Functions | |
| __construct (AfsQuery $query, AfsHelperConfiguration $config) | |
| Constructs new manager instance. | |
| add_spellcheck ($replyset) | |
| Add new spellcheck reply to spellcheck manager. | |
| has_spellcheck () | |
| Checks whether at least one spellcheck is defined. | |
| get_spellcheck ($feed=null) | |
| Retrieves default, available or specified spellcheck. | |
| get_spellchecks () | |
| Retrieves all spellcheck replies. | |
| format () | |
| Retrieves spellchecks as array. | |
Public Member Functions inherited from AfsHelperBase | |
| __get ($name) | |
| Simple property helper. | |
Manages one or more spellcheck reply.
| __construct | ( | AfsQuery | $query, |
| AfsHelperConfiguration | $config | ||
| ) |
Constructs new manager instance.
| $query | [in] the query which has generated current reply. |
| $config | [in] helper configuration. |
| add_spellcheck | ( | $replyset | ) |
Add new spellcheck reply to spellcheck manager.
| $replyset | [in] JSON reply corresponding to a spellcheck reply. |
| Exception | when invalid replyset has been provided. |
| format | ( | ) |
Retrieves spellchecks as array.
All data are store in key => value format:
| get_spellcheck | ( | $feed = null | ) |
Retrieves default, available or specified spellcheck.
| $feed | [in] Feed for which spellcheck should be retrieved. Default value is null, two cases can occur:
|
| OutOfBoundsException | when required feed has not produced any spellcheck reply. |
| get_spellchecks | ( | ) |
Retrieves all spellcheck replies.
| has_spellcheck | ( | ) |
Checks whether at least one spellcheck is defined.
True when one or more spellcheck is defined, false otherwise.
1.8.1.2