PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.6
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.6
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Modules / Form / Inputs.php

Inputs.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.6, at app/Modules/Form/Inputs.php

37 lines 701 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Modules\Form;
4
5 use FluentForm\App\Services\Form\Fields;
6 use FluentForm\Framework\Foundation\Application;
7
8 class Inputs
9 {
10 /**
11 * Request object
12 *
13 * @var \FluentForm\Framework\Request\Request
14 */
15 private $request;
16
17 /**
18 * Build the class instance
19 *
20 * @throws \Exception
21 */
22 public function __construct(Application $application)
23 {
24 $this->request = $application->request;
25 }
26
27 /**
28 * Get all the flatten form inputs for shortcode generation.
29 */
30 public function index()
31 {
32 $formId = $this->request->get('formId');
33
34 wp_send_json((new Fields())->get($formId), 200);
35 }
36 }
37