TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Sv\Report\ServicesListReport Class Reference
Inheritance diagram for TYPO3\CMS\Sv\Report\ServicesListReport:
TYPO3\CMS\Reports\ReportInterface

Public Member Functions

 __construct (ReportController $reportsModule)
 
 getReport ()
 

Protected Member Functions

 renderHelp ()
 
 renderServicesList ()
 
 renderServiceTypeList ($serviceType, $services)
 
 renderServiceRow ($serviceKey, $serviceInformation)
 
 renderExecutablesSearchPathList ()
 
 getInstalledServices ()
 
 sortServices (array $a, array $b)
 
 getLanguageService ()
 

Protected Attributes

 $reportsModule
 

Detailed Description

This class provides a report displaying a list of all installed services Code inspired by EXT:dam/lib/class.tx_dam_svlist.php by René Fritz

Definition at line 28 of file ServicesListReport.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Sv\Report\ServicesListReport::__construct ( ReportController  $reportsModule)

Constructor

Parameters
ReportController$reportsModuleBack-reference to the calling reports module

Definition at line 42 of file ServicesListReport.php.

References TYPO3\CMS\Sv\Report\ServicesListReport\$reportsModule, and TYPO3\CMS\Sv\Report\ServicesListReport\getLanguageService().

Member Function Documentation

◆ getInstalledServices()

TYPO3\CMS\Sv\Report\ServicesListReport::getInstalledServices ( )
protected

This method filters the $T3_SERVICES global array to return a relevant, ordered list of installed services.

Every installed service appears twice in $T3_SERVICES: once as a service key for a given service type, and once a service type all by itself The list of services to display must avoid these duplicates

Furthermore, inside each service type, installed services must be ordered by priority and quality

Returns
array List of filtered and ordered services

Definition at line 222 of file ServicesListReport.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Sv\Report\ServicesListReport\renderServicesList().

◆ getLanguageService()

◆ getReport()

TYPO3\CMS\Sv\Report\ServicesListReport::getReport ( )

◆ renderExecutablesSearchPathList()

TYPO3\CMS\Sv\Report\ServicesListReport::renderExecutablesSearchPathList ( )
protected

This method assembles a list of all defined executables search paths

Returns
string HTML to display

Definition at line 173 of file ServicesListReport.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\fixWindowsFilePath(), TYPO3\CMS\Sv\Report\ServicesListReport\getLanguageService(), and TYPO3\CMS\Core\Utility\CommandUtility\getPaths().

Referenced by TYPO3\CMS\Sv\Report\ServicesListReport\getReport().

◆ renderHelp()

TYPO3\CMS\Sv\Report\ServicesListReport::renderHelp ( )
protected

Renders the help comments at the top of the module.

Returns
string The help content for this module.

Definition at line 67 of file ServicesListReport.php.

References TYPO3\CMS\Sv\Report\ServicesListReport\getLanguageService().

Referenced by TYPO3\CMS\Sv\Report\ServicesListReport\getReport().

◆ renderServiceRow()

TYPO3\CMS\Sv\Report\ServicesListReport::renderServiceRow (   $serviceKey,
  $serviceInformation 
)
protected

Renders a single service's row.

Parameters
string$serviceKeyThe service key to access the service.
array$serviceInformationregistration information of the service.
Returns
string HTML row for the service.

Definition at line 133 of file ServicesListReport.php.

References TYPO3\CMS\Core\Utility\ExtensionManagementUtility\findServiceByKey(), and TYPO3\CMS\Sv\Report\ServicesListReport\getLanguageService().

Referenced by TYPO3\CMS\Sv\Report\ServicesListReport\renderServiceTypeList().

◆ renderServicesList()

TYPO3\CMS\Sv\Report\ServicesListReport::renderServicesList ( )
protected

This method assembles a list of all installed services

Returns
string HTML to display

Definition at line 79 of file ServicesListReport.php.

References TYPO3\CMS\Sv\Report\ServicesListReport\getInstalledServices(), and TYPO3\CMS\Sv\Report\ServicesListReport\renderServiceTypeList().

Referenced by TYPO3\CMS\Sv\Report\ServicesListReport\getReport().

◆ renderServiceTypeList()

TYPO3\CMS\Sv\Report\ServicesListReport::renderServiceTypeList (   $serviceType,
  $services 
)
protected

Renders the services list for a single service type.

Parameters
string$serviceTypeThe service type to render the installed services list for
array$servicesList of services for the given type
Returns
string Service list as HTML for one service type

Definition at line 96 of file ServicesListReport.php.

References TYPO3\CMS\Sv\Report\ServicesListReport\getLanguageService(), and TYPO3\CMS\Sv\Report\ServicesListReport\renderServiceRow().

Referenced by TYPO3\CMS\Sv\Report\ServicesListReport\renderServicesList().

◆ sortServices()

TYPO3\CMS\Sv\Report\ServicesListReport::sortServices ( array  $a,
array  $b 
)
protected

Utility method used to sort services according to their priority and quality.

Parameters
array$aFirst service to compare
array$bSecond service to compare
Returns
int 1, 0 or -1 if $a is smaller, equal or greater than $b, respectively

Definition at line 244 of file ServicesListReport.php.

Member Data Documentation

◆ $reportsModule

TYPO3\CMS\Sv\Report\ServicesListReport::$reportsModule
protected