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
|
Properties |
protected array $conditions = []
|
protected string $name |
protected string $question |