\MainWP\DashboardMainWP_Reports_Helper

Class MainWP_Reports_Helper.

Summary

Methods
Properties
Constants
get_instance()
__construct()
hook_get_reports_group_values()
get_group_reports_data_of_site()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$reports_sites_values
$instance
N/A

Properties

$reports_sites_values

$reports_sites_values : array

Reports sites values

Type

array — array values.

$instance

$instance : null

Protected static variable to hold the instance.

Type

null — Default value.

Methods

get_instance()

get_instance() : self

Create Instance.

Returns

self —

$instance

__construct()

__construct() 

Construct method.

hook_get_reports_group_values()

hook_get_reports_group_values(array  $values, string  $group, array  $types, integer  $site_id) 

Method hook_get_reports_group_values()

Get dashboard tokens values for reports.

Parameters

array $values

Input values.

string $group

Group tokens.

array $types

Types of tokens.

integer $site_id

Site ID.

get_group_reports_data_of_site()

get_group_reports_data_of_site(integer  $site_id) 

Get tokens values of site.

Parameters

integer $site_id

Site ID.