phpDocumentor

StatisticsService
in package
implements StatisticsServiceInterface

Class StatisticsService

Provides the statistic data for the dashboard.

Tags
category

System

Interfaces, Classes and Traits

StatisticsServiceInterface
Interface StatisticsServiceInterface

Table of Contents

$conversionRateDecimalPlaces  : int
$db  : CI_DB_query_builder
$excludeOrderStatusIds  : array<string|int, mixed>
$xtcPrice  : xtcPrice
__construct()  : mixed
getAverageOrderValueLastMonth()  : string
Gets the average order value of the last month as a formatted price (i.e.: 1.234,56 EUR).
getAverageOrderValueLastSixMonths()  : string
Gets the average order value of the last six months as a formatted price (i.e.: 1.234,56 EUR).
getAverageOrderValueLastThreeMonths()  : string
Gets the average order value of the last three months as a formatted price (i.e.: 1.234,56 EUR).
getAverageOrderValueLastTwoWeeks()  : string
Gets the average order value of the last two weeks as a formatted price (i.e.: 1.234,56 EUR).
getAverageOrderValueLastWeek()  : string
Gets the average order value of the last week as a formatted price (i.e.: 1.234,56 EUR).
getAverageOrderValueLastYear()  : string
Gets the average order value of the last year as a formatted price (i.e.: 1.234,56 EUR).
getAverageOrderValueToday()  : string
Gets the average order value of today as a formatted price (i.e.: 1.234,56 EUR).
getConversionRateLastMonth()  : string
Gets the conversion rate of the last month as a formatted number (i.e.: 0,27)
getConversionRateLastSixMonths()  : string
Gets the conversion rate of the last six months as a formatted number (i.e.: 0,27)
getConversionRateLastThreeMonths()  : string
Gets the conversion rate of the last three months as a formatted number (i.e.: 0,27)
getConversionRateLastTwoWeeks()  : string
Gets the conversion rate of the last two weeks as a formatted number (i.e.: 0,27)
getConversionRateLastWeek()  : string
Gets the conversion rate of the last week as a formatted number (i.e.: 0,27)
getConversionRateLastYear()  : string
Gets the conversion rate of the last year as a formatted number (i.e.: 0,27)
getConversionRateToday()  : string
Gets the conversion rate of today as a formatted number (i.e.: 0,27)
getNewCustomersLastMonth()  : int
Gets the amount of new customers of the last month
getNewCustomersLastSixMonths()  : int
Gets the amount of new customers of the last six months
getNewCustomersLastThreeMonths()  : int
Gets the amount of new customers of the last three months
getNewCustomersLastTwoWeeks()  : int
Gets the amount of new customers of the last two week
getNewCustomersLastWeek()  : int
Gets the amount of new customers of the last week
getNewCustomersLastYear()  : int
Gets the amount of new customers of the last year
getNewCustomersStatisticsDataLastMonth()  : array<string|int, mixed>
Get new customer data of the last month.
getNewCustomersStatisticsDataLastSixMonth()  : array<string|int, mixed>
Get new customer data of the last six months.
getNewCustomersStatisticsDataLastThreeMonth()  : array<string|int, mixed>
Get new customer data of the last three months.
getNewCustomersStatisticsDataLastTwoWeeks()  : array<string|int, mixed>
Get new customer data of the last two weeks.
getNewCustomersStatisticsDataLastWeek()  : array<string|int, mixed>
Get new customer data of the last week.
getNewCustomersStatisticsDataLastYear()  : array<string|int, mixed>
Get new customer data of the last year.
getNewCustomersToday()  : int
Gets the amount of new customers of the current date
getOrdersCountLastMonth()  : int
Gets the orders count of the last month
getOrdersCountLastSixMonths()  : int
Gets the orders count of the last six months
getOrdersCountLastThreeMonths()  : int
Gets the orders count of the last three months
getOrdersCountLastTwoWeeks()  : int
Gets the orders count of the last two weeks
getOrdersCountLastWeek()  : int
Gets the orders count of the last week
getOrdersCountLastYear()  : int
Gets the orders count of the last year
getOrdersCountToday()  : int
Gets the orders count of today
getOrdersStatisticsDataLastMonth()  : array<string|int, mixed>
Get orders data for the last month.
getOrdersStatisticsDataLastTwoWeek()  : array<string|int, mixed>
Get orders data for the last two weeks.
getOrdersStatisticsDataLastWeek()  : array<string|int, mixed>
Get orders data for the last week.
getOrderStatisticsDataLastSixMonth()  : array<string|int, mixed>
Get order data for the last six months.
getOrderStatisticsDataLastThreeMonth()  : array<string|int, mixed>
Get order data for the last three months.
getOrderStatisticsDataLastYear()  : array<string|int, mixed>
Get order data for the last year.
getSalesLastMonth()  : string
Gets the amount of sales of the last month
getSalesLastSixMonths()  : string
Gets the amount of sales of the last six months
getSalesLastThreeMonths()  : string
Gets the amount of sales of the last three months
getSalesLastTwoWeeks()  : string
Gets the amount of sales of the last two week
getSalesLastWeek()  : string
Gets the amount of sales of the last week
getSalesLastYear()  : string
Gets the amount of sales of the last year
getSalesStatisticsDataLastMonth()  : array<string|int, mixed>
Get sales data for the last month.
getSalesStatisticsDataLastSixMonth()  : array<string|int, mixed>
Get sales data for the last six month.
getSalesStatisticsDataLastThreeMonth()  : array<string|int, mixed>
Get sales data for the last three month.
getSalesStatisticsDataLastTwoWeeks()  : array<string|int, mixed>
Get sales data for the last two weeks.
getSalesStatisticsDataLastWeek()  : array<string|int, mixed>
Get sales data for the last week.
getSalesStatisticsDataLastYear()  : array<string|int, mixed>
Get sales data for the last year.
getSalesToday()  : string
Gets the amount of sales of the current date
getUsersOnline()  : int
Gets the amount of users who are currently online.
getVisitorsLastMonth()  : int
Gets the amount of visitors of the last month
getVisitorsLastSixMonths()  : int
Gets the amount of visitors of the last six months
getVisitorsLastThreeMonths()  : int
Gets the amount of visitors of the last three months
getVisitorsLastTwoWeeks()  : int
Gets the amount of visitors of the last two week
getVisitorsLastWeek()  : int
Gets the amount of visitors of the last week
getVisitorsLastYear()  : int
Gets the amount of visitors of the last year
getVisitorsStatisticsDataLastMonth()  : array<string|int, mixed>
Get visitors data for the last month.
getVisitorsStatisticsDataLastSixMonth()  : array<string|int, mixed>
Get visitors data for the last six months.
getVisitorsStatisticsDataLastThreeMonth()  : array<string|int, mixed>
Get visitors data for the last three months.
getVisitorsStatisticsDataLastTwoWeeks()  : array<string|int, mixed>
Get visitors data for the last two weeks.
getVisitorsStatisticsDataLastWeek()  : array<string|int, mixed>
Get visitors data for the last week.
getVisitorsStatisticsDataLastYear()  : array<string|int, mixed>
Get visitors data for the last six months.
getVisitorsToday()  : int
Gets the amount of visitors of the current date.
_calculateAverageOrderValue()  : float
Calculates the average order value.
_calculateConversionRate()  : float
Calculates the conversion rate
_getAverageOrderValue()  : string
Returns the conversion rate as a formatted number (i.e.: 0,27).
_getConversionRate()  : string
Returns the conversion rate as a formatted number (i.e.: 0,27)
_getNewCustomersFromCurrentDayHelper()  : array<string|int, mixed>
Helper function to fetch new customer data of the current day.
_getNewCustomersFromCurrentMonthHelper()  : array<string|int, mixed>
Helper function to fetch new customer data of the current month.
_getNewCustomersFromDayIntervalHelper()  : array<string|int, mixed>
Helper function to fetch new customer data of a day time span.
_getNewCustomersFromMonthIntervalHelper()  : array<string|int, mixed>
Helper function to fetch new customer data of a month time span.
_getOrdersFromCurrentDayHelper()  : array<string|int, mixed>
Helper function to fetch order data of the current month.
_getOrdersFromCurrentMonthHelper()  : array<string|int, mixed>
Helper function to fetch order data of the current month.
_getOrdersFromDayIntervalHelper()  : array<string|int, mixed>
Helper function to fetch order data of a month time span.
_getOrdersFromMonthIntervalHelper()  : array<string|int, mixed>
Helper function to fetch order data of a month time span.
_getSalesFromCurrentDayHelper()  : array<string|int, mixed>
Helper function to fetch sales data of the current day.
_getSalesFromCurrentMonthHelper()  : array<string|int, mixed>
Helper function to fetch sales data of the current month.
_getSalesFromDayIntervalHelper()  : array<string|int, mixed>
Helper function to fetch sales data of a day time span.
_getSalesFromMonthIntervalHelper()  : array<string|int, mixed>
Helper function to fetch sales data of a month time span.
_getSalesLastMonth()  : float
Get Sales Last Month
_getSalesLastSixMonths()  : float
Get Sales Last Six Months
_getSalesLastThreeMonths()  : float
Get Sales Last Three Months
_getSalesLastTwoWeeks()  : float
Get Sales Last Two Weeks
_getSalesLastWeek()  : float
Get Sales Last Week
_getSalesLastYear()  : float
Get Sales Last Year
_getSalesToday()  : float
Get Sales Today
_getVisitorsFromCurrentDayHelper()  : array<string|int, mixed>
Helper function to fetch visitors data of the current month.
_getVisitorsFromCurrentMonthHelper()  : array<string|int, mixed>
Helper function to fetch visitors data of the current month.
_getVisitorsFromDayIntervalHelper()  : array<string|int, mixed>
Helper function to fetch visitors data of a month time span.
_getVisitorsFromMonthIntervalHelper()  : array<string|int, mixed>
Helper function to fetch visitors data of a month time span.

Properties

Methods

__construct()

public __construct(CI_DB_query_builder $db, xtcPrice $xtcPrice) : mixed
Parameters
$db : CI_DB_query_builder
$xtcPrice : xtcPrice
Return values
mixed

getAverageOrderValueLastMonth()

Gets the average order value of the last month as a formatted price (i.e.: 1.234,56 EUR).

public getAverageOrderValueLastMonth() : string
Return values
string

getAverageOrderValueLastSixMonths()

Gets the average order value of the last six months as a formatted price (i.e.: 1.234,56 EUR).

public getAverageOrderValueLastSixMonths() : string
Return values
string

getAverageOrderValueLastThreeMonths()

Gets the average order value of the last three months as a formatted price (i.e.: 1.234,56 EUR).

public getAverageOrderValueLastThreeMonths() : string
Return values
string

getAverageOrderValueLastTwoWeeks()

Gets the average order value of the last two weeks as a formatted price (i.e.: 1.234,56 EUR).

public getAverageOrderValueLastTwoWeeks() : string
Return values
string

getAverageOrderValueLastWeek()

Gets the average order value of the last week as a formatted price (i.e.: 1.234,56 EUR).

public getAverageOrderValueLastWeek() : string
Return values
string

getAverageOrderValueLastYear()

Gets the average order value of the last year as a formatted price (i.e.: 1.234,56 EUR).

public getAverageOrderValueLastYear() : string
Return values
string

getAverageOrderValueToday()

Gets the average order value of today as a formatted price (i.e.: 1.234,56 EUR).

public getAverageOrderValueToday() : string
Return values
string

getConversionRateLastMonth()

Gets the conversion rate of the last month as a formatted number (i.e.: 0,27)

public getConversionRateLastMonth() : string
Return values
string

getConversionRateLastSixMonths()

Gets the conversion rate of the last six months as a formatted number (i.e.: 0,27)

public getConversionRateLastSixMonths() : string
Return values
string

getConversionRateLastThreeMonths()

Gets the conversion rate of the last three months as a formatted number (i.e.: 0,27)

public getConversionRateLastThreeMonths() : string
Return values
string

getConversionRateLastTwoWeeks()

Gets the conversion rate of the last two weeks as a formatted number (i.e.: 0,27)

public getConversionRateLastTwoWeeks() : string
Return values
string

getConversionRateLastWeek()

Gets the conversion rate of the last week as a formatted number (i.e.: 0,27)

public getConversionRateLastWeek() : string
Return values
string

getConversionRateLastYear()

Gets the conversion rate of the last year as a formatted number (i.e.: 0,27)

public getConversionRateLastYear() : string
Return values
string

getConversionRateToday()

Gets the conversion rate of today as a formatted number (i.e.: 0,27)

public getConversionRateToday() : string
Return values
string

getNewCustomersLastMonth()

Gets the amount of new customers of the last month

public getNewCustomersLastMonth() : int
Return values
int

getNewCustomersLastSixMonths()

Gets the amount of new customers of the last six months

public getNewCustomersLastSixMonths() : int
Return values
int

getNewCustomersLastThreeMonths()

Gets the amount of new customers of the last three months

public getNewCustomersLastThreeMonths() : int
Return values
int

getNewCustomersLastTwoWeeks()

Gets the amount of new customers of the last two week

public getNewCustomersLastTwoWeeks() : int
Return values
int

getNewCustomersLastWeek()

Gets the amount of new customers of the last week

public getNewCustomersLastWeek() : int
Return values
int

getNewCustomersLastYear()

Gets the amount of new customers of the last year

public getNewCustomersLastYear() : int
Return values
int

getNewCustomersStatisticsDataLastMonth()

Get new customer data of the last month.

public getNewCustomersStatisticsDataLastMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNewCustomersStatisticsDataLastSixMonth()

Get new customer data of the last six months.

public getNewCustomersStatisticsDataLastSixMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNewCustomersStatisticsDataLastThreeMonth()

Get new customer data of the last three months.

public getNewCustomersStatisticsDataLastThreeMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNewCustomersStatisticsDataLastTwoWeeks()

Get new customer data of the last two weeks.

public getNewCustomersStatisticsDataLastTwoWeeks() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNewCustomersStatisticsDataLastWeek()

Get new customer data of the last week.

public getNewCustomersStatisticsDataLastWeek() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNewCustomersStatisticsDataLastYear()

Get new customer data of the last year.

public getNewCustomersStatisticsDataLastYear() : array<string|int, mixed>
Return values
array<string|int, mixed>

getNewCustomersToday()

Gets the amount of new customers of the current date

public getNewCustomersToday() : int
Return values
int

getOrdersCountLastMonth()

Gets the orders count of the last month

public getOrdersCountLastMonth() : int
Return values
int

getOrdersCountLastSixMonths()

Gets the orders count of the last six months

public getOrdersCountLastSixMonths() : int
Return values
int

getOrdersCountLastThreeMonths()

Gets the orders count of the last three months

public getOrdersCountLastThreeMonths() : int
Return values
int

getOrdersCountLastTwoWeeks()

Gets the orders count of the last two weeks

public getOrdersCountLastTwoWeeks() : int
Return values
int

getOrdersCountLastWeek()

Gets the orders count of the last week

public getOrdersCountLastWeek() : int
Return values
int

getOrdersCountLastYear()

Gets the orders count of the last year

public getOrdersCountLastYear() : int
Return values
int

getOrdersCountToday()

Gets the orders count of today

public getOrdersCountToday() : int
Return values
int

getOrdersStatisticsDataLastMonth()

Get orders data for the last month.

public getOrdersStatisticsDataLastMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOrdersStatisticsDataLastTwoWeek()

Get orders data for the last two weeks.

public getOrdersStatisticsDataLastTwoWeek() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOrdersStatisticsDataLastWeek()

Get orders data for the last week.

public getOrdersStatisticsDataLastWeek() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOrderStatisticsDataLastSixMonth()

Get order data for the last six months.

public getOrderStatisticsDataLastSixMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOrderStatisticsDataLastThreeMonth()

Get order data for the last three months.

public getOrderStatisticsDataLastThreeMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOrderStatisticsDataLastYear()

Get order data for the last year.

public getOrderStatisticsDataLastYear() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSalesLastMonth()

Gets the amount of sales of the last month

public getSalesLastMonth() : string
Return values
string

getSalesLastSixMonths()

Gets the amount of sales of the last six months

public getSalesLastSixMonths() : string
Return values
string

getSalesLastThreeMonths()

Gets the amount of sales of the last three months

public getSalesLastThreeMonths() : string
Return values
string

getSalesLastTwoWeeks()

Gets the amount of sales of the last two week

public getSalesLastTwoWeeks() : string
Return values
string

getSalesLastWeek()

Gets the amount of sales of the last week

public getSalesLastWeek() : string
Return values
string

getSalesLastYear()

Gets the amount of sales of the last year

public getSalesLastYear() : string
Return values
string

getSalesStatisticsDataLastMonth()

Get sales data for the last month.

public getSalesStatisticsDataLastMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSalesStatisticsDataLastSixMonth()

Get sales data for the last six month.

public getSalesStatisticsDataLastSixMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSalesStatisticsDataLastThreeMonth()

Get sales data for the last three month.

public getSalesStatisticsDataLastThreeMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSalesStatisticsDataLastTwoWeeks()

Get sales data for the last two weeks.

public getSalesStatisticsDataLastTwoWeeks() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSalesStatisticsDataLastWeek()

Get sales data for the last week.

public getSalesStatisticsDataLastWeek() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSalesStatisticsDataLastYear()

Get sales data for the last year.

public getSalesStatisticsDataLastYear() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSalesToday()

Gets the amount of sales of the current date

public getSalesToday() : string
Return values
string

getUsersOnline()

Gets the amount of users who are currently online.

public getUsersOnline() : int
Return values
int

getVisitorsLastMonth()

Gets the amount of visitors of the last month

public getVisitorsLastMonth() : int
Return values
int

getVisitorsLastSixMonths()

Gets the amount of visitors of the last six months

public getVisitorsLastSixMonths() : int
Return values
int

getVisitorsLastThreeMonths()

Gets the amount of visitors of the last three months

public getVisitorsLastThreeMonths() : int
Return values
int

getVisitorsLastTwoWeeks()

Gets the amount of visitors of the last two week

public getVisitorsLastTwoWeeks() : int
Return values
int

getVisitorsLastWeek()

Gets the amount of visitors of the last week

public getVisitorsLastWeek() : int
Return values
int

getVisitorsLastYear()

Gets the amount of visitors of the last year

public getVisitorsLastYear() : int
Return values
int

getVisitorsStatisticsDataLastMonth()

Get visitors data for the last month.

public getVisitorsStatisticsDataLastMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getVisitorsStatisticsDataLastSixMonth()

Get visitors data for the last six months.

public getVisitorsStatisticsDataLastSixMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getVisitorsStatisticsDataLastThreeMonth()

Get visitors data for the last three months.

public getVisitorsStatisticsDataLastThreeMonth() : array<string|int, mixed>
Return values
array<string|int, mixed>

getVisitorsStatisticsDataLastTwoWeeks()

Get visitors data for the last two weeks.

public getVisitorsStatisticsDataLastTwoWeeks() : array<string|int, mixed>
Return values
array<string|int, mixed>

getVisitorsStatisticsDataLastWeek()

Get visitors data for the last week.

public getVisitorsStatisticsDataLastWeek() : array<string|int, mixed>
Return values
array<string|int, mixed>

getVisitorsStatisticsDataLastYear()

Get visitors data for the last six months.

public getVisitorsStatisticsDataLastYear() : array<string|int, mixed>
Return values
array<string|int, mixed>

getVisitorsToday()

Gets the amount of visitors of the current date.

public getVisitorsToday() : int
Return values
int

_calculateAverageOrderValue()

Calculates the average order value.

protected _calculateAverageOrderValue(float $p_sales, int $p_ordersCount) : float
Parameters
$p_sales : float
$p_ordersCount : int
Return values
float

_calculateConversionRate()

Calculates the conversion rate

protected _calculateConversionRate(int $p_ordersCount, int $p_visitorsCount) : float
Parameters
$p_ordersCount : int
$p_visitorsCount : int
Return values
float

_getAverageOrderValue()

Returns the conversion rate as a formatted number (i.e.: 0,27).

protected _getAverageOrderValue(float $p_sales, int $p_ordersCount) : string
Parameters
$p_sales : float
$p_ordersCount : int
Return values
string

_getConversionRate()

Returns the conversion rate as a formatted number (i.e.: 0,27)

protected _getConversionRate(int $p_ordersCount, int $p_visitorsCount) : string
Parameters
$p_ordersCount : int
$p_visitorsCount : int
Return values
string

_getNewCustomersFromCurrentDayHelper()

Helper function to fetch new customer data of the current day.

protected _getNewCustomersFromCurrentDayHelper() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getNewCustomersFromCurrentMonthHelper()

Helper function to fetch new customer data of the current month.

protected _getNewCustomersFromCurrentMonthHelper() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getNewCustomersFromDayIntervalHelper()

Helper function to fetch new customer data of a day time span.

protected _getNewCustomersFromDayIntervalHelper(int $fromInterval) : array<string|int, mixed>
Parameters
$fromInterval : int
Return values
array<string|int, mixed>

_getNewCustomersFromMonthIntervalHelper()

Helper function to fetch new customer data of a month time span.

protected _getNewCustomersFromMonthIntervalHelper(int $fromInterval) : array<string|int, mixed>
Parameters
$fromInterval : int
Return values
array<string|int, mixed>

_getOrdersFromCurrentDayHelper()

Helper function to fetch order data of the current month.

protected _getOrdersFromCurrentDayHelper() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getOrdersFromCurrentMonthHelper()

Helper function to fetch order data of the current month.

protected _getOrdersFromCurrentMonthHelper() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getOrdersFromDayIntervalHelper()

Helper function to fetch order data of a month time span.

protected _getOrdersFromDayIntervalHelper(int $fromInterval) : array<string|int, mixed>
Parameters
$fromInterval : int
Return values
array<string|int, mixed>

_getOrdersFromMonthIntervalHelper()

Helper function to fetch order data of a month time span.

protected _getOrdersFromMonthIntervalHelper(int $fromInterval) : array<string|int, mixed>
Parameters
$fromInterval : int
Return values
array<string|int, mixed>

_getSalesFromCurrentDayHelper()

Helper function to fetch sales data of the current day.

protected _getSalesFromCurrentDayHelper() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getSalesFromCurrentMonthHelper()

Helper function to fetch sales data of the current month.

protected _getSalesFromCurrentMonthHelper() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getSalesFromDayIntervalHelper()

Helper function to fetch sales data of a day time span.

protected _getSalesFromDayIntervalHelper(int $fromInterval) : array<string|int, mixed>
Parameters
$fromInterval : int
Return values
array<string|int, mixed>

_getSalesFromMonthIntervalHelper()

Helper function to fetch sales data of a month time span.

protected _getSalesFromMonthIntervalHelper(int $fromInterval) : array<string|int, mixed>
Parameters
$fromInterval : int
Return values
array<string|int, mixed>

_getSalesLastMonth()

Get Sales Last Month

protected _getSalesLastMonth() : float
Return values
float

_getSalesLastSixMonths()

Get Sales Last Six Months

protected _getSalesLastSixMonths() : float
Return values
float

_getSalesLastThreeMonths()

Get Sales Last Three Months

protected _getSalesLastThreeMonths() : float
Return values
float

_getSalesLastTwoWeeks()

Get Sales Last Two Weeks

protected _getSalesLastTwoWeeks() : float
Return values
float

_getSalesLastWeek()

Get Sales Last Week

protected _getSalesLastWeek() : float
Return values
float

_getSalesLastYear()

Get Sales Last Year

protected _getSalesLastYear() : float
Return values
float

_getSalesToday()

Get Sales Today

protected _getSalesToday() : float
Return values
float

_getVisitorsFromCurrentDayHelper()

Helper function to fetch visitors data of the current month.

protected _getVisitorsFromCurrentDayHelper() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getVisitorsFromCurrentMonthHelper()

Helper function to fetch visitors data of the current month.

protected _getVisitorsFromCurrentMonthHelper() : array<string|int, mixed>
Return values
array<string|int, mixed>

_getVisitorsFromDayIntervalHelper()

Helper function to fetch visitors data of a month time span.

protected _getVisitorsFromDayIntervalHelper(int $fromInterval) : array<string|int, mixed>
Parameters
$fromInterval : int
Return values
array<string|int, mixed>

_getVisitorsFromMonthIntervalHelper()

Helper function to fetch visitors data of a month time span.

protected _getVisitorsFromMonthIntervalHelper(int $fromInterval) : array<string|int, mixed>
Parameters
$fromInterval : int
Return values
array<string|int, mixed>

Search results