DT_Metrics_Sources_Chart

Extends \DT_Metrics_Chart_Base

package

Default

Methods

Disciple_Tools_Counter constructor.

__construct() 
inherited

add_api_routes

add_api_routes() 

api_sources_chart_data

api_sources_chart_data(\WP_REST_Request $request) 

Arguments

$request

\WP_REST_Request

This hook add a page for the metric charts

base_add_url( $template_for_url) : mixed
inherited

Arguments

$template_for_url

Response

mixed

Build the menu out on the metrics page The menu item will be added based on the base_slug (menu group) and the base_title from the template extending this class

base_menu( $content) : mixed|string
inherited

Arguments

$content

Response

mixed|string

base_scripts

base_scripts() 
inherited

check_date_string

check_date_string(\string $str) 
static

Arguments

$str

\string

Get source data. Returns an array that looks like this:

get_source_data_from_db(\string $from = null, \string $to = null) 
static

$rv = [ 'website foobar' => [ 'name_of_source' => 'website foobar', 'status_paused' => 1, 'status_closed' => 4, 'status_active' => 3, 'total' => 8, 'active_seeker_path_attempted' => 2, 'active_seeker_path_ongoing' => 1, ], // etc ];

Arguments

$from

\string

$to

\string

get_sources_milestones

get_sources_milestones(\string $from = null, \string $to = null) 
static

Arguments

$from

\string

$to

\string

has_permission

has_permission() 
inherited

Load scripts for the plugin

scripts() 

Properties

base_slug

base_slug : 
inherited

Type(s)

base_title

base_title : 
inherited

Type(s)

title

title : 
inherited

Type(s)

slug

slug : 
inherited

Type(s)

js_object_name

js_object_name : 
inherited

Type(s)

js_file_name

js_file_name : 
inherited

Type(s)

permissions

permissions : 
inherited

Type(s)