Class DashboardController

Class DashboardController

PHP controller class for the dashboard page of the admin section. The statistic results are generated within this class and provided to the frontend through AJAX calls.

HttpViewController implements HttpViewControllerInterface
AdminHttpViewController implements AdminStatusOnlyInterface
DashboardController

Methods summary

public init( void )

Initialize Controller

public actionGetStatisticBoxes( void )
public actionGetLatestOrders( void )

Returns the latest orders.

public actionGetUsersOnline( void ) : JsonHttpControllerResponse

Returns the amount of users who are currently online

protected _getUsersOnline( void ) : array

Get online user statistics.

public actionGetVisitors( void ) : JsonHttpControllerResponse

Gets the amount of Visitors in the given timespan

protected _getVisitors( string $interval ) : array

Get visitors count statistics.

public actionGetNewCustomers( void ) : JsonHttpControllerResponse

Returns the amount of Visitors in the given timespan

public actionGetOrdersCount( void ) : JsonHttpControllerResponse

Returns the count of orders in the given timespan

protected _getOrdersCount( string $interval ) : array

Get orders count statistics.

public actionGetConversionRate( void ) : JsonHttpControllerResponse

Returns the conversion rate in the given timespan

protected _getConversionRate( string $interval ) : array

Get conversion rate statistics.

public actionGetSalesStatisticsData( void ) : JsonHttpControllerResponse

Returns sales data for the dashboard statistic.

protected _getSalesStatisticsData( $interval )
public actionGetOrderStatisticsData( void ) : JsonHttpControllerResponse

Returns order data for the dashboard statistic.

public actionGetVisitorsStatisticsData( void ) : JsonHttpControllerResponse

Returns visitor data for the dashboard statistic.

public actionGetNewCustomerStatisticsData( void ) : JsonHttpControllerResponse

Returns new customer data for the dashboard statistic.

public actionGetSales( void ) : JsonHttpControllerResponse

Returns the sales rate in the given timespan

protected _getSales( $interval )
public actionGetAverageOrderValue( void ) : JsonHttpControllerResponse

Returns the average order value in the given timespan

Methods inherited from AdminHttpViewController

validateCurrentAdminStatus()

Methods inherited from HttpViewController

__construct(), _callActionMethod(), _getPostData(), _getPostDataCollection(), _getQueryParameter(), _getQueryParametersCollection(), _getServerData(), _render(), _validatePageToken(), actionDefault(), getTemplateFile(), proceed()

Properties summary

protected $excludeOrderStatusIds : array
array(99)

Properties inherited from HttpViewController

$assets, $contentView, $httpContextReader, $httpResponseProcessor, $postDataArray, $queryParametersArray, $serverDataArray