Class WPDP_Project

author Peter Schulz
since 2.0.0
package WPDataProjects\Project

 Methods

WPDP_Project constructor

__construct(string $project_id = null, string $page_id = null

Set project and page ID. Sets the structure for the Data Projects tool main page if no project ID is provided. Sets the structure for the Data Projects tool table options page if project ID is 'wpda_sys_tables'.

Parameters

$project_id

string

Project ID

$page_id

string

Page ID

Returns the project children or null if not available

get_children() : array | null

Returns

arraynull

Returns the project mode or null if not available

get_mode() : string | null

Returns

stringnull

Returns the project parent info or null if not available

get_parent() : array | null

Returns

arraynull

Returns the project structure

get_project() : array

Returns

array

Returns the project setname or null if not available

get_setname() : string | null

Returns

stringnull

Returns the project sub title or null if not available

get_subtitle() : string | null

Returns

stringnull

Returns the project title or null if not available

get_title() : string | null

Returns

stringnull

Creates the structure for the given project page

init_project_page(string $project_id, string $page_id) 

Parameters

$project_id

string

Project ID

$page_id

string

Page ID

Sets the structure for the Data Projects tool main page

init_self() 

Sets the structure for the Data Projects tool table options page

init_self_tables() 

 Properties

 

Page ID

$page_id : string | null

Default

null
 

Project structure

$project : array | null

Default

null
 

Project ID

$project_id : string | null

Default

null