| Server IP : 172.67.71.254 / Your IP : 216.73.217.51 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/leapdubai/public_html/wp-content/plugins/kirki/app/DTO/Form/ |
Upload File : |
<?php
namespace Kirki\App\DTO\Form;
use Kirki\Framework\Sanitizer;
defined('ABSPATH') || exit;
use Kirki\Framework\DTO;
class FormConfigDTO extends DTO
{
/** @var string The form element's builder id. */
public $id;
/** @var string Whether the form posts to this site ('default') or an external URL ('external'). Not used server-side. */
public $type;
/** @var string */
public $name;
/** @var array */
public $fields = [];
/** @var array */
public $actions = [];
/** @var array Client-side "what to show after submit" config. Not used server-side. */
public $onSubmit = [];
/** @var array */
public $maxEntry = [];
/** @var array */
public $responseLimit = [];
/** @var bool */
public $saveData = false;
public function __construct(array $data = [])
{
parent::__construct($data);
$this->id = (string) $this->id;
$this->type = (string) $this->type;
$this->name = (string) $this->name;
$this->fields = is_array($this->fields) ? $this->fields : [];
$this->actions = is_array($this->actions) ? $this->actions : [];
$this->onSubmit = is_array($this->onSubmit) ? $this->onSubmit : [];
$this->maxEntry = is_array($this->maxEntry) ? $this->maxEntry : [];
$this->responseLimit = is_array($this->responseLimit) ? $this->responseLimit : [];
$this->saveData = Sanitizer::apply_rule($this->saveData, Sanitizer::BOOL);
}
}