| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
namespace Jet_Form_Builder\Classes\Arguments; |
| 5 |
|
| 6 |
// If this file is called directly, abort. |
| 7 |
if ( ! defined( 'WPINC' ) ) { |
| 8 |
die; |
| 9 |
} |
| 10 |
|
| 11 |
class Default_Form_Arguments extends Form_Arguments { |
| 12 |
|
| 13 |
public function __construct( $form_id = 0 ) { |
| 14 |
parent::__construct( $form_id ); |
| 15 |
|
| 16 |
$this->set_submit_type( 'reload' ); |
| 17 |
$this->set_required_mark( '*' ); |
| 18 |
$this->set_fields_layout( 'column' ); |
| 19 |
$this->set_enable_progress( false ); |
| 20 |
$this->set_clear( false ); |
| 21 |
$this->set_fields_label_tag( 'div' ); |
| 22 |
$this->set_markup_type( 'div' ); |
| 23 |
} |
| 24 |
|
| 25 |
public function to_array(): array { |
| 26 |
$args = parent::to_array(); |
| 27 |
unset( $args['form_id'] ); |
| 28 |
|
| 29 |
return $args; |
| 30 |
} |
| 31 |
|
| 32 |
} |
| 33 |
|