PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 1.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v1.2
V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 2.10.2 All 137 releases
bit-form / includes / Core / Ajax / AjaxService.php

AjaxService.php in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 1.2, at includes/Core/Ajax/AjaxService.php

53 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace BitCode\BitForm\Core\Ajax;
3
4 use BitCode\BitForm\Admin\AdminAjax;
5 use BitCode\BitForm\Core\Capability\Request;
6 use BitCode\BitForm\Frontend\Ajax\FrontendAjax;
7 use BitCode\BitForm\Core\Integration\Integrations;
8
9 class AjaxService
10 {
11 public function __construct()
12 {
13 if (Request::Check('ajax')) {
14 $this->loadPublicAjax();
15 }
16 if (Request::Check('admin')) {
17 $this->loadAdminAjax();
18 $this->loadIntegrationsAjax();
19 }
20 }
21
22 /**
23 * Helps to register admin side ajax
24 *
25 * @return null
26 */
27 public function loadAdminAjax()
28 {
29 (new AdminAjax())->register();
30 }
31
32 /**
33 * Helps to register frontend ajax
34 *
35 * @return null
36 */
37 protected function loadPublicAjax()
38 {
39 (new FrontendAjax())->register();
40 }
41
42 /**
43 * Helps to register integration ajax
44 *
45 * @return null
46 */
47 public function loadIntegrationsAjax()
48 {
49 (new Integrations())->registerAjax();
50
51 }
52 }
53