‪TYPO3CMS  ‪main
TYPO3\CMS\Reports\Registry\ReportRegistry Class Reference

Public Member Functions

 __construct (iterable $providers)
 
ReportInterface[] getReports ()
 
 hasReport (string $identifier)
 
 getReport (string $identifier)
 

Private Attributes

array $providers = []
 

Detailed Description

Registry for report providers. The registry receives all services, tagged with "reports.report". The tagging of status providers is automatically done based on the implemented ReportInterface.

Definition at line 28 of file ReportRegistry.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Reports\Registry\ReportRegistry::__construct ( iterable  $providers)
Parameters
iterable<ReportInterface>‪$providers

Definition at line 38 of file ReportRegistry.php.

References TYPO3\CMS\Reports\Registry\ReportRegistry\$providers.

Member Function Documentation

◆ getReport()

TYPO3\CMS\Reports\Registry\ReportRegistry::getReport ( string  $identifier)

Get registered report by identifier

Definition at line 66 of file ReportRegistry.php.

References TYPO3\CMS\Webhooks\Message\$identifier, and TYPO3\CMS\Reports\Registry\ReportRegistry\hasReport().

◆ getReports()

ReportInterface [] TYPO3\CMS\Reports\Registry\ReportRegistry::getReports ( )

Get all registered reports

Returns
ReportInterface[]

Definition at line 50 of file ReportRegistry.php.

References TYPO3\CMS\Reports\Registry\ReportRegistry\$providers.

◆ hasReport()

TYPO3\CMS\Reports\Registry\ReportRegistry::hasReport ( string  $identifier)

Whether a registered report exists for the identifier

Definition at line 58 of file ReportRegistry.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

Referenced by TYPO3\CMS\Reports\Registry\ReportRegistry\getReport().

Member Data Documentation

◆ $providers

array TYPO3\CMS\Reports\Registry\ReportRegistry::$providers = []
private