| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Suppress "error - 0 - No summary was found for this file" on phpdoc generation |
| 5 |
* |
| 6 |
* @package WPDataProjects\Project |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace WPDataProjects\Project { |
| 10 |
|
| 11 |
use \WPDataAccess\List_Table\WPDA_List_View; |
| 12 |
|
| 13 |
/** |
| 14 |
* Class WPDP_Project_Table_View extends WPDA_List_View |
| 15 |
* |
| 16 |
* @see WPDA_List_View |
| 17 |
* |
| 18 |
* @author Peter Schulz |
| 19 |
* @since 2.0.0 |
| 20 |
*/ |
| 21 |
class WPDP_Project_Table_View extends WPDA_List_View { |
| 22 |
|
| 23 |
/** |
| 24 |
* Overwrites method show to add extra actions |
| 25 |
*/ |
| 26 |
public function show() { |
| 27 |
// Add datetimepicker |
| 28 |
wp_enqueue_style( 'datetimepicker' ); |
| 29 |
wp_enqueue_script( 'datetimepicker' ); |
| 30 |
|
| 31 |
if ( 'reconcile' === $this->action || 'reverse_engineering' === $this->action ) { |
| 32 |
$this->display_edit_form(); |
| 33 |
} else { |
| 34 |
parent::show(); |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
} |
| 39 |
|
| 40 |
} |
| 41 |
|