‪TYPO3CMS  ‪main
TYPO3\CMS\Dashboard\Widgets\Provider\TypeOfUsersChartDataProvider Class Reference
Inheritance diagram for TYPO3\CMS\Dashboard\Widgets\Provider\TypeOfUsersChartDataProvider:
TYPO3\CMS\Dashboard\Widgets\ChartDataProviderInterface

Public Member Functions

 __construct (private readonly LanguageServiceFactory $languageServiceFactory)
 
 getChartData ()
 

Protected Member Functions

 getNumberOfUsers (bool $admin=false)
 

Detailed Description

Definition at line 27 of file TypeOfUsersChartDataProvider.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Dashboard\Widgets\Provider\TypeOfUsersChartDataProvider::__construct ( private readonly LanguageServiceFactory  $languageServiceFactory)

Definition at line 29 of file TypeOfUsersChartDataProvider.php.

Member Function Documentation

◆ getChartData()

TYPO3\CMS\Dashboard\Widgets\Provider\TypeOfUsersChartDataProvider::getChartData ( )

This method should provide the data for the graph. The data and options you have depend on the type of chart. More information can be found in the documentation of the specific type.

https://www.chartjs.org/docs/latest/charts/doughnut.html#data-structure

Implements TYPO3\CMS\Dashboard\Widgets\ChartDataProviderInterface.

Definition at line 31 of file TypeOfUsersChartDataProvider.php.

References $GLOBALS, and TYPO3\CMS\Dashboard\Widgets\Provider\TypeOfUsersChartDataProvider\getNumberOfUsers().

◆ getNumberOfUsers()

TYPO3\CMS\Dashboard\Widgets\Provider\TypeOfUsersChartDataProvider::getNumberOfUsers ( bool  $admin = false)
protected