Class WPDP

Implements Data Projects page. The page consist of a number of tabs ($this->tabs) and uses the following list views: (1) WPDP_Project_Project_View - To manage Data Projects (2) WPDP_Project_Table_View - To manage Table Options

author Peter Schulz
since 2.0.0
package WPDataProjects

 Methods

WPDP constructor

__construct() 

(1) Determine menu slug (2) Set tabs (3) Set links (4) Determine current tab

Add menu items

add_menu_items() 

Adds Data Projects tool to dashboard menu and determines which tab should be shown.

Add projects to menu

add_projects() 

Menu items are taken from active projects. Project pages marked as "add to menu" are added to the dashboard menu.

Implementation of the Data Projects page

data_projects_page() 

Data Designer repository table not found

data_projects_page_not_found() 

Manage project page

manage_project_page() 

Add static page content

add_content() 

Adds tabs to page

add_tabs() 

 Properties

 

Current tab

$current_tab : 

Default

 

Menu slug taken from URL

$page : null

Default

null
 

Available tabs

$tabs : array

Default

 

Arrary containing all project pages

$wpdp_project_menus : 

Default

 

Array containing all project page views

$wpdp_project_views : 

Default

 

Used for static pages

$wpdp_projects_content : 

Default

 

Data Projects menu

$wpdp_projects_menu : 

Default

 

Handle to view (depends on current tab)

$wpdp_projects_view : 

Default

 Constants

 

Menu slug of Data Project page

PAGE_MAIN = 'wpda_wpdp' 
 

Page and menu title

PAGE_TITLE = 'Data Projects'