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