![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
AFS ACP Replyset helper. More...
Public Member Functions | |
| __construct ($name, $reply_set, AfsAcpConfiguration $config=null) | |
| Constructs new ACP replyset helper. | |
| get_feed () | |
| Retrieves name of the feed which has produced these suggestions. | |
| get_query_string () | |
| Retrieves query string. | |
Suggestions | |
| has_reply () | |
| Checks wether at least one reply is available. | |
| get_nb_replies () | |
| Retrieves number suggestions. | |
| get_replies () | |
| Retrieves suggestions. | |
Miscellaneous | |
| format () | |
| Retrieves suggestions as array. | |
Public Member Functions inherited from AfsHelperBase | |
| __get ($name) | |
| Simple property helper. | |
AFS ACP Replyset helper.
Each replyset corresponds to suggestions of each feed.
| __construct | ( | $name, | |
| $reply_set, | |||
| AfsAcpConfiguration | $config = null |
||
| ) |
Constructs new ACP replyset helper.
| $name | [in] Feed name source of generated suggestions. |
| $reply_set | [in] Json decoded suggestions of specific replyset. |
| $config | ACP configuration. |
| AfsAcpEmptyReplysetException | when feed does not generate any suggestion. |
| AfsAcpUnmanagedSuggestionFormatException | when provided $reply_set format is unknown. |
| AfsAcpInvalidSuggestionFormatException | when provided $reply_set is invalid. |
| format | ( | ) |
Retrieves suggestions as array.
This method is intended for internal use only.
All suggestions are stored in list format.
| get_feed | ( | ) |
Retrieves name of the feed which has produced these suggestions.
| get_nb_replies | ( | ) |
Retrieves number suggestions.
| get_query_string | ( | ) |
Retrieves query string.
| get_replies | ( | ) |
Retrieves suggestions.
| has_reply | ( | ) |
Checks wether at least one reply is available.
true when one or more replies are available, false otherwise.
1.8.1.2