| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
die( 'You are not allowed to call this page directly.' ); |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* This is a simple data object for field selection data. |
| 9 |
* Used in the form builder. |
| 10 |
* |
| 11 |
* @since 6.9.1 |
| 12 |
*/ |
| 13 |
class FrmFieldSelectionData { |
| 14 |
|
| 15 |
/** |
| 16 |
* @var array |
| 17 |
*/ |
| 18 |
public $all_field_types; |
| 19 |
|
| 20 |
/** |
| 21 |
* @var array |
| 22 |
*/ |
| 23 |
public $disabled_fields; |
| 24 |
|
| 25 |
public function __construct() { |
| 26 |
$pro_field_selection = FrmField::pro_field_selection(); |
| 27 |
$this->all_field_types = array_merge( $pro_field_selection, FrmField::field_selection() ); |
| 28 |
$this->disabled_fields = FrmAppHelper::pro_is_installed() ? array() : $pro_field_selection; |
| 29 |
} |
| 30 |
} |
| 31 |
|