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-table-options-converter.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Admin\Single_Pages\Meta_Boxes; |
| 5 | |
| 6 | class Meta_Table_Options_Converter extends Meta_Box_Options_Converter { |
| 7 | |
| 8 | protected $footer_heading = true; |
| 9 | protected $show_overflow = false; |
| 10 | protected $show_overflow_control = false; |
| 11 | |
| 12 | public function __construct( Meta_Table_Options $box ) { |
| 13 | parent::__construct( $box ); |
| 14 | |
| 15 | $this->show_overflow = $box->is_show_overflow(); |
| 16 | $this->show_overflow_control = $box->is_show_overflow_control(); |
| 17 | $this->footer_heading = $box->is_footer_heading(); |
| 18 | } |
| 19 | |
| 20 | public function to_array(): array { |
| 21 | return parent::to_array() + array( |
| 22 | 'footer_heading' => $this->footer_heading, |
| 23 | 'show_overflow' => $this->show_overflow, |
| 24 | 'show_overflow_control' => $this->show_overflow_control, |
| 25 | ); |
| 26 | } |
| 27 | |
| 28 | } |
| 29 |