Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Orders
    • Serializers
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Interfaces
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AdminFavoritesAjaxController
  • AdminInfoBoxAjaxController
  • AfterbuyAjaxController
  • DashboardController
  • DynamicShopMessagesController
  • EmailsController
  • EmbeddedModuleController
  • ImageProcessingController
  • InvoicesController
  • LawsController
  • MaxFileSizeController
  • ModuleCenterController
  • NewAttributesController
  • OrdersModalsAjaxController
  • OrdersOverviewAjaxController
  • OrdersOverviewController
  • OrderTooltipController
  • PackedDownloadController
  • ShopKeyController
  • TemplateConfigurationController
  • UserConfigurationController

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
Extended by AdminHttpViewController implements AdminStatusOnlyInterface
Extended by DashboardController
Package: AdminHttpViewControllers
Category: System
Located at Controllers/HttpView/Admin/DashboardController.inc.php

Methods summary

public
# proceed( HttpContextInterface $httpContext )

Overrides "proceed" method of parent and use it for initialization.

Overrides "proceed" method of parent and use it for initialization.

This method must call the parent "proceed" in order to work properly.

Parameters

$httpContext

Throws

LogicException
When no action method is found by the http context reader.

Overrides

HttpViewController::proceed
public
# actionGetLatestOrders( )

Returns the latest orders.

Returns the latest orders.

public JsonHttpControllerResponse
# actionGetUsersOnline( )

Returns the amount of users who are currently online

Returns the amount of users who are currently online

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetVisitors( )

Gets the amount of Visitors in the given timespan

Gets the amount of Visitors in the given timespan

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetNewCustomers( )

Returns the amount of Visitors in the given timespan

Returns the amount of Visitors in the given timespan

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetOrdersCount( )

Returns the count of orders in the given timespan

Returns the count of orders in the given timespan

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetConversionRate( )

Returns the conversion rate in the given timespan

Returns the conversion rate in the given timespan

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetSalesStatisticsData( )

Returns sales data for the dashboard statistic.

Returns sales data for the dashboard statistic.

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetOrderStatisticsData( )

Returns order data for the dashboard statistic.

Returns order data for the dashboard statistic.

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetVisitorsStatisticsData( )

Returns visitor data for the dashboard statistic.

Returns visitor data for the dashboard statistic.

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetNewCustomerStatisticsData( )

Returns new customer data for the dashboard statistic.

Returns new customer data for the dashboard statistic.

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetSales( )

Returns the sales rate in the given timespan

Returns the sales rate in the given timespan

Returns

JsonHttpControllerResponse
public JsonHttpControllerResponse
# actionGetAverageOrderValue( )

Returns the average order value in the given timespan

Returns the average order value in the given timespan

Returns

JsonHttpControllerResponse

Methods inherited from AdminHttpViewController

validateCurrentAdminStatus()

Methods inherited from HttpViewController

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

Properties summary

protected GXCoreLoaderSettingsInterface $settings
#
protected GXCoreLoaderInterface $loader
#
protected array $excludeOrderStatusIds
# array(99)

Properties inherited from HttpViewController

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

API documentation generated by ApiGen