base-list-box.php
2 years ago
base-meta-box.php
2 years ago
base-table-box.php
2 years ago
meta-box-options-converter.php
2 years ago
meta-box-options.php
2 years ago
meta-box-update-callback.php
2 years ago
meta-table-options-converter.php
2 years ago
meta-table-options.php
2 years ago
meta-table-options-converter.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Admin\Single_Pages\Meta_Boxes; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | class Meta_Table_Options_Converter extends Meta_Box_Options_Converter { |
| 12 | |
| 13 | protected $footer_heading = true; |
| 14 | protected $show_overflow = false; |
| 15 | protected $show_overflow_control = false; |
| 16 | |
| 17 | public function __construct( Meta_Table_Options $box ) { |
| 18 | parent::__construct( $box ); |
| 19 | |
| 20 | $this->show_overflow = $box->is_show_overflow(); |
| 21 | $this->show_overflow_control = $box->is_show_overflow_control(); |
| 22 | $this->footer_heading = $box->is_footer_heading(); |
| 23 | } |
| 24 | |
| 25 | public function to_array(): array { |
| 26 | return parent::to_array() + array( |
| 27 | 'footer_heading' => $this->footer_heading, |
| 28 | 'show_overflow' => $this->show_overflow, |
| 29 | 'show_overflow_control' => $this->show_overflow_control, |
| 30 | ); |
| 31 | } |
| 32 | |
| 33 | } |
| 34 |