base-list-box.php
3 years ago
base-meta-box.php
3 years ago
base-table-box.php
3 years ago
meta-box-options-converter.php
3 years ago
meta-box-options.php
3 years ago
meta-box-update-callback.php
3 years ago
meta-table-options-converter.php
3 years ago
meta-table-options.php
3 years ago
meta-box-options-converter.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Admin\Single_Pages\Meta_Boxes; |
| 5 | |
| 6 | use Jet_Form_Builder\Classes\Arrayable\Arrayable; |
| 7 | |
| 8 | class Meta_Box_Options_Converter implements Arrayable { |
| 9 | |
| 10 | protected $editable_table = false; |
| 11 | protected $editable_table_control = false; |
| 12 | |
| 13 | public function __construct( Meta_Box_Options $box ) { |
| 14 | $this->editable_table = $box->is_editable_table(); |
| 15 | $this->editable_table_control = $box->is_editable_table_control(); |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Get the instance as an array. |
| 20 | * |
| 21 | * @return array |
| 22 | */ |
| 23 | public function to_array(): array { |
| 24 | return array( |
| 25 | 'is_editable_table' => $this->editable_table, |
| 26 | 'is_editable_table_control' => $this->editable_table_control, |
| 27 | ); |
| 28 | } |
| 29 | } |
| 30 |