actions
2 years ago
columns
2 years ago
column-advanced-base.php
2 years ago
column-base.php
2 years ago
column-heading-interface.php
2 years ago
column-heading-trait.php
2 years ago
view-advanced-base.php
2 years ago
view-base.php
2 years ago
view-simple-base.php
2 years ago
column-advanced-base.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Admin\Table_Views; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | abstract class Column_Advanced_Base extends Column_Base implements Column_Heading_Interface { |
| 12 | |
| 13 | private $use_label = true; |
| 14 | |
| 15 | use Column_Heading_Trait; |
| 16 | |
| 17 | public function use_label( bool $use_label ): Column_Advanced_Base { |
| 18 | $this->use_label = $use_label; |
| 19 | |
| 20 | return $this; |
| 21 | } |
| 22 | |
| 23 | public function has_label(): bool { |
| 24 | return $this->use_label; |
| 25 | } |
| 26 | |
| 27 | } |
| 28 |