| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/AIWEBSTATION/wp-content/plugins/fluentform/app/Modules/Form/ |
Upload File : |
<?php
namespace FluentForm\App\Modules\Form;
use FluentForm\App\Services\Form\Fields;
use FluentForm\Framework\Foundation\Application;
class Inputs
{
/**
* Request object
*
* @var \FluentForm\Framework\Request\Request
*/
private $request;
/**
* Build the class instance
*
* @throws \Exception
*/
public function __construct(Application $application)
{
$this->request = $application->request;
}
/**
* Get all the flatten form inputs for shortcode generation.
*/
public function index()
{
$formId = $this->request->get('formId');
wp_send_json((new Fields())->get($formId), 200);
}
}