CloneableInstantiable
| Methods |
| public __construct(string $name, string $question = '') Set up an AJAX callback
|
| public addFunction(string $function, string $script) : static Add a function parameter and the script that matches the parameter type according to jQuery.ajax |
| public execute(array $parameters) : string Return JavaScript that will execute a function call
|
| public getPageJS() : string Get the generated JavaScript function to be added to the page.
|
| public isMyCallback(array $post) : bool Return true if the post is from this AJAX call
|
| public setUrl(string $url) : static Set the url for the request. It defaults to the current page. |
| Properties |
protected array $conditions = []
|
| protected string $name |
| protected string $question |
| Properties |
| private string $url = '' |