# fluentform/1.2.4/app/Modules/Form/Inputs.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 1.2.4. 39 lines.

- Page: https://pluginprobe.com/plugins/fluentform/1.2.4/code/app/Modules/Form/Inputs.php
- Raw: https://pluginprobe.com/plugins/fluentform/1.2.4/raw/app/Modules/Form/Inputs.php
- Modified: 2018-02-03T11:29:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/1.2.4/code/app/Modules/Form/Inputs.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Modules\Form;

use FluentForm\App\Modules\Acl\Acl;
use FluentForm\App\Services\FormParser;
use FluentForm\Framework\Foundation\Application;

class Inputs
{
    /**
     * @var \FluentForm\Framework\Request\Request
     */
    private $request;

    /**
     * Build the class instance
     * @throws \Exception
     */
    public function __construct(Application $application)
    {
        Acl::verify('fluentform_forms_manager');

        $this->request = $application->request;
    }

    /**
     * Get all the flatten form inputs
     * @return  void
     */
    public function index()
    {
        $formId = $this->request->get('formId');
        
        $form = wpFluent()->table('fluentform_forms')->find($formId);
        $fields = (new FormParser($form))->getEntryInputs(array('admin_label', 'attributes', 'options'));
        wp_send_json($fields, 200);
    }
}
```
