PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.4
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.4
5.5.84 5.5.83 5.5.82 5.5.81 5.5.80 5.5.79 5.5.77 5.5.76 5.5.75 5.5.73 5.5.72 5.5.22 5.5.23 5.5.29 5.5.3 5.5.31 5.5.32 5.5.34 5.5.35 5.5.36 5.5.37 5.5.4 5.5.40 5.5.41 5.5.42 All 160 releases
wp-data-access / WPDataProjects / Parent_Child / WPDP_Parent_Form_View.php

WPDP_Parent_Form_View.php in WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards 5.5.4, at WPDataProjects/Parent_Child/WPDP_Parent_Form_View.php

51 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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