1 | <?php |
||
22 | class FormSubmitAjax |
||
23 | { |
||
24 | /** |
||
25 | * The form wrapper registry. |
||
26 | * |
||
27 | * @var FormWrapperRegistry |
||
28 | */ |
||
29 | private $formWrapperRegistry; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param FormWrapperRegistry $formWrapperRegistry The form wrapper registry |
||
35 | * @param string $action Action used by WordPress to identify this AJAX request |
||
36 | */ |
||
37 | public function __construct(FormWrapperRegistry $formWrapperRegistry, $action = 'form_submit') |
||
43 | |||
44 | /** |
||
45 | * Call to be executed on AJAX request. |
||
46 | */ |
||
47 | public function ajax() |
||
65 | } |
||
66 |