ServicesListReport implements ReportInterface

This class provides a report displaying a list of all installed services

Table of Contents

Interfaces

ReportInterface
Interface for classes which provide a report.

Properties

$reportsModule  : ReportController

Methods

__construct()  : mixed
Constructor
getReport()  : string
This method renders the report
getExecutablesSearchPathList()  : array
This method assembles a list of all defined executables search paths
getInstalledServices()  : array
This method filters the $T3_SERVICES global array to return a relevant, ordered list of installed services.
getLanguageService()  : LanguageService
Returns LanguageService
getServiceRow()  : array
Get data of a single service's row.
getServicesList()  : array
This method assembles a list of all installed services
getServiceTypeList()  : array
Get the services list for a single service type.
sortServices()  : int
Utility method used to sort services according to their priority and quality.

Properties

Methods

getReport()

This method renders the report

public getReport() : string
Return values
string —

The status report as HTML

getExecutablesSearchPathList()

This method assembles a list of all defined executables search paths

protected getExecutablesSearchPathList() : array
Return values
array —

data to display

getInstalledServices()

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

protected getInstalledServices() : array

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

Return values
array —

List of filtered and ordered services

getServiceRow()

Get data of a single service's row.

protected getServiceRow(string $serviceKey, array $serviceInformation) : array
Parameters
$serviceKey : string

The service key to access the service.

$serviceInformation : array

registration information of the service.

Return values
array —

data for one row for the service.

getServicesList()

This method assembles a list of all installed services

protected getServicesList() : array
Return values
array —

with data to display

getServiceTypeList()

Get the services list for a single service type.

protected getServiceTypeList(string $serviceType, array $services) : array
Parameters
$serviceType : string

The service type to render the installed services list for

$services : array

List of services for the given type

Return values
array —

Service list as array for one service type

sortServices()

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

protected sortServices(array $a, array $b) : int
Parameters
$a : array

First service to compare

$b : array

Second service to compare

Return values
int —

1, 0 or -1 if $a is smaller, equal or greater than $b, respectively

On this page

Search results