\MainWP\Dashboard\Module\CostTrackerCost_Tracker_Dashboard

Class Cost_Tracker_Dashboard

Summary

Methods
Properties
Constants
get_instance()
__construct()
admin_init()
ajax_notes_save()
render_overview_page()
render_costs_summary()
ajax_cost_tracker_delete()
render_actions_bar()
render_dashboard_body()
get_dashboard_table_row()
render_modal_edit_notes()
get_columns()
render_screen_options()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$order
$orderby
$instance
N/A

Properties

$order

$order : mixed

Variable to hold the order.

Type

mixed — Default empty.

$orderby

$orderby : mixed

Variable to hold the order by.

Type

mixed — Default empty.

$instance

$instance : mixed

Static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

__construct()

__construct() 

Constructor

Runs each time the class is called.

admin_init()

admin_init() 

Method admin_init()

Admin init.

ajax_notes_save()

ajax_notes_save() 

Method ajax_notes_save()

Post handler for save notes.

render_overview_page()

render_overview_page() 

Renders overview.

When the page loads render the body content.

render_costs_summary()

render_costs_summary() 

Method render_costs_summary()

ajax_cost_tracker_delete()

ajax_cost_tracker_delete() 

Method ajax_cost_tracker_delete()

Post handler for save notes.

render_actions_bar()

render_actions_bar() 

Render Actions Bar

Renders the actions bar on the Dashboard tab.

render_dashboard_body()

render_dashboard_body(array  $subscriptions) 

Render the Dashbaord tab

Renders the dashbaord tab content - Subscription table

Parameters

array $subscriptions

Subscriptions.

get_dashboard_table_row()

get_dashboard_table_row(array  $subscriptions, array  $output = array()) 

Get Subscription Table Row

Gets the Subscription dashbaord table row.

Parameters

array $subscriptions

Subscriptions data.

array $output

Subscriptions output data.

render_modal_edit_notes()

render_modal_edit_notes(string  $what = 'site') : void

Method render_modal_edit_notes()

Render modal window for edit notes.

Parameters

string $what

What modal window to render. Default = site.

get_columns()

get_columns() : array

Get columns.

Returns

array —

Array of column names.

render_screen_options()

render_screen_options() 

Render Page Settings.