| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/finman.es.ihu.gr/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);
}
}