| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Suppress "error - 0 - No summary was found for this file" on phpdoc generation |
| 5 |
* |
| 6 |
* @package WPDataProjects\Parent_Child |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace WPDataProjects\Parent_Child { |
| 10 |
|
| 11 |
/** |
| 12 |
* Class WPDP_Parent_Form_View extends WPDP_Parent_Form |
| 13 |
* |
| 14 |
* @see WPDP_Parent_Form |
| 15 |
* |
| 16 |
* @author Peter Schulz |
| 17 |
* @since 2.0.0 |
| 18 |
*/ |
| 19 |
class WPDP_Parent_Form_View extends WPDP_Parent_Form { |
| 20 |
|
| 21 |
/** |
| 22 |
* Overwrites WPDP_Parent_Form_View constructor |
| 23 |
* |
| 24 |
* Show the parent form in view mode |
| 25 |
* |
| 26 |
* @param $schema_name |
| 27 |
* @param $table_name |
| 28 |
* @param $wpda_list_columns |
| 29 |
* @param array $args |
| 30 |
* @param array $relationship |
| 31 |
*/ |
| 32 |
public function __construct( $schema_name, $table_name, &$wpda_list_columns, $args = array(), $relationship = array() ) { |
| 33 |
$this->edit_form_class = 'WPDataProjects\\Parent_Child\\WPDP_Child_Form_View'; |
| 34 |
$this->list_table_class = 'WPDataProjects\\Parent_Child\\WPDP_Child_List_Table_View'; |
| 35 |
|
| 36 |
parent::__construct( $schema_name, $table_name, $wpda_list_columns, $args, $relationship ); |
| 37 |
|
| 38 |
$this->mode = 'view'; |
| 39 |
} |
| 40 |
|
| 41 |
/** |
| 42 |
* Set child action to view |
| 43 |
*/ |
| 44 |
protected function set_child_action() { |
| 45 |
$this->child_action = 'view'; |
| 46 |
} |
| 47 |
|
| 48 |
} |
| 49 |
|
| 50 |
} |
| 51 |
|