NextDom\Helpers\AjaxHelper
Class AjaxHelper
Synopsis
class AjaxHelper
{
- // members
- private bool $answerSended = false;
- // methods
- public void __construct()
- public void checkToken()
- public static string getToken()
- public void error()
- public mixed getResponse()
- public void success()
Tasks
Line | Task |
---|---|
118 | Tester l'incidence de l'ordre des résultat si result est inséré en dernier |
Members
private
- $answerSended — NextDom\Helpers\bool
Methods
public
- __construct() — Init ajax communication
- checkToken() — Check ajax token validity
- error() — Send error
- getResponse() — Convert data to JSON response
- getToken() — Get current NextDom token stored in session
- success() — Send answer