‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem:
TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface TYPO3\CMS\Backend\Toolbar\RequestAwareToolbarItemInterface

Public Member Functions

 __construct (private readonly EventDispatcherInterface $eventDispatcher, private readonly Typo3Version $typo3Version, private readonly BackendViewFactory $backendViewFactory,)
 
 setRequest (ServerRequestInterface $request)
 
 addSystemMessage ($text, $status=InformationStatus::OK, $count=0, $module='', $params='')
 
 addSystemInformation ($title, $value, $iconIdentifier, $status=InformationStatus::NOTICE)
 
 checkAccess ()
 
 getItem ()
 
 getDropDown ()
 
 getAdditionalAttributes ()
 
 hasDropDown ()
 
 getIndex ()
 

Protected Member Functions

 collectInformation ()
 
 addTypo3Version ()
 
 addWebServer ()
 
 addPhpVersion ()
 
 addDebugger ()
 
 addDatabase ()
 
 addApplicationContext ()
 
 addComposerMode ()
 
 addGitRevision ()
 
 addOperatingSystem ()
 
 isFunctionDisabled (string $functionName)
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 

Protected Attributes

array $systemInformation = []
 
InformationStatus $highestSeverity
 
string $severityBadgeClass = ''
 
array $systemMessages = []
 
int $systemMessageTotalCount = 0
 

Private Attributes

ServerRequestInterface $request
 

Detailed Description

Render system information toolbar item and drop-down. Provides some events for other extensions to add information.

Definition at line 40 of file SystemInformationToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::__construct ( private readonly EventDispatcherInterface  $eventDispatcher,
private readonly Typo3Version  $typo3Version,
private readonly BackendViewFactory  $backendViewFactory 
)

Definition at line 49 of file SystemInformationToolbarItem.php.

Member Function Documentation

◆ addApplicationContext()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addApplicationContext ( )
protected

◆ addComposerMode()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addComposerMode ( )
protected

◆ addDatabase()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addDatabase ( )
protected

◆ addDebugger()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addDebugger ( )
protected

◆ addGitRevision()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addGitRevision ( )
protected

◆ addOperatingSystem()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addOperatingSystem ( )
protected

Gets the system kernel and version

Definition at line 333 of file SystemInformationToolbarItem.php.

Referenced by TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\collectInformation().

◆ addPhpVersion()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addPhpVersion ( )
protected

◆ addSystemInformation()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addSystemInformation (   $title,
  $value,
  $iconIdentifier,
  $status = InformationStatus::NOTICE 
)

Add a system information. This is a callback method for signal receivers.

Parameters
string$title‪The title of this system information, typically a LLL:EXT:... label string
string$value‪The associated value
string$iconIdentifier‪The icon identifier
string | InformationStatus$status‪The status of this system information

Definition at line 113 of file SystemInformationToolbarItem.php.

◆ addSystemMessage()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addSystemMessage (   $text,
  $status = InformationStatus::OK,
  $count = 0,
  $module = '',
  $params = '' 
)

Add a system message. This is a callback method for signal receivers.

Parameters
string$text‪The text to be displayed
string | InformationStatus$status‪The status of this system message
int$count‪Will be added to the total count
string$module‪The associated module
string$params‪Query string with additional parameters

Definition at line 72 of file SystemInformationToolbarItem.php.

◆ addTypo3Version()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addTypo3Version ( )
protected

◆ addWebServer()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addWebServer ( )
protected

◆ checkAccess()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::checkAccess ( )

◆ collectInformation()

◆ getAdditionalAttributes()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::getAdditionalAttributes ( )

No additional attributes needed.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 174 of file SystemInformationToolbarItem.php.

◆ getBackendUserAuthentication()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::getBackendUserAuthentication ( )
protected

◆ getDropDown()

◆ getIndex()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::getIndex ( )

Position relative to others

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 190 of file SystemInformationToolbarItem.php.

◆ getItem()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::getItem ( )

Render system information dropdown.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 146 of file SystemInformationToolbarItem.php.

◆ getLanguageService()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::getLanguageService ( )
protected

◆ hasDropDown()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::hasDropDown ( )

This item has a drop-down.

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 182 of file SystemInformationToolbarItem.php.

◆ isFunctionDisabled()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::isFunctionDisabled ( string  $functionName)
protected

Check if the given PHP function is disabled in the system.

Definition at line 358 of file SystemInformationToolbarItem.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ setRequest()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::setRequest ( ServerRequestInterface  $request)

Member Data Documentation

◆ $highestSeverity

InformationStatus TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$highestSeverity
protected

Definition at line 44 of file SystemInformationToolbarItem.php.

◆ $request

ServerRequestInterface TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$request
private

◆ $severityBadgeClass

string TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$severityBadgeClass = ''
protected

Definition at line 45 of file SystemInformationToolbarItem.php.

◆ $systemInformation

array TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$systemInformation = []
protected

Definition at line 43 of file SystemInformationToolbarItem.php.

◆ $systemMessages

array TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$systemMessages = []
protected

Definition at line 46 of file SystemInformationToolbarItem.php.

◆ $systemMessageTotalCount

int TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$systemMessageTotalCount = 0
protected

Definition at line 47 of file SystemInformationToolbarItem.php.