![]() |
Antidot PHP API
version 0.16.0
##PHP API to simplify integration of Antidot components
|
Helper to retrieve useful information from AFS search engine reply header. More...
Public Member Functions | |
__construct ($header) | |
Constructs AFS search engine reply header helper. | |
in_error () | |
Checks whether an error occured. | |
get_error () | |
Retrieves error message. | |
get_user_id () | |
Retrieves user identifier. | |
get_session_id () | |
Retrieves session identifier. | |
get_duration () | |
Retrieves AFS search engine computation duration. | |
get_query_parameter ($key) | |
Retrieve query parameter stored in header $key : Name of the parameter. | |
![]() | |
__get ($name) | |
Simple property helper. |
Helper to retrieve useful information from AFS search engine reply header.
__construct | ( | $header | ) |
Constructs AFS search engine reply header helper.
$header | [in] json decoded header reply. |
get_duration | ( | ) |
Retrieves AFS search engine computation duration.
You should check whether an error occurred before retrieving duration otherwise you may go into trouble.
get_error | ( | ) |
Retrieves error message.
You should check whether an error occurred before retrieving error message otherwise you may go into trouble.
get_query_parameter | ( | $key | ) |
Retrieve query parameter stored in header $key : Name of the parameter.
get_session_id | ( | ) |
Retrieves session identifier.
You should check whether an error occurred before retrieving session id otherwise you may go into trouble.
get_user_id | ( | ) |
Retrieves user identifier.
You should check whether an error occurred before retrieving user id otherwise you may go into trouble.
in_error | ( | ) |
Checks whether an error occured.
You are encouraged to check error before accessing any other data.
True
on error, false
otherwise.