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
Category: System
Located at Controllers/HttpView/Admin/DashboardController.inc.php
Methods summary
public
actionGetUsersOnline( void )
: JsonHttpControllerResponse
Returns the amount of users who are currently online
public
actionGetVisitors( void )
: JsonHttpControllerResponse
Gets the amount of Visitors in the given timespan
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
public
actionGetConversionRate( void )
: JsonHttpControllerResponse
Returns the conversion rate in the given timespan
public
actionGetSalesStatisticsData( void )
: JsonHttpControllerResponse
Returns sales data for the dashboard statistic.
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
public
actionGetAverageOrderValue( void )
: JsonHttpControllerResponse
Returns the average order value in the given timespan
Methods inherited from AdminHttpViewController
Methods inherited from HttpViewController
__construct(),
_callActionMethod(),
_getPostData(),
_getPostDataCollection(),
_getQueryParameter(),
_getQueryParametersCollection(),
_getServerData(),
_render(),
_validatePageToken(),
actionDefault(),
getTemplateFile(),
proceed()
Properties summary
Properties inherited from HttpViewController
$assets,
$contentView,
$httpContextReader,
$httpResponseProcessor,
$postDataArray,
$queryParametersArray,
$serverDataArray