TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem:
TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface

Public Member Functions

 __construct ()
 
 renderMenuAction (ServerRequestInterface $request, ResponseInterface $response)
 
 addSystemInformation ($title, $value, $icon)
 
 checkAccess ()
 
 getItem ()
 
 getDropDown ()
 
 getAdditionalAttributes ()
 
 hasDropDown ()
 
 getIndex ()
 

Public Attributes

const TOOLBAR_MENU_TEMPLATE = 'SystemInformation.html'
 

Protected Member Functions

 collectInformation ()
 
 getPhpVersion ()
 
 getDatabase ()
 
 getApplicationContext ()
 
 getComposerMode ()
 
 getGitRevision ()
 
 getOperatingSystem ()
 
 getWebServer ()
 
 emitGetSystemInformation ()
 
 emitLoadMessages ()
 
 getBackendUserAuthentication ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 
 getLanguageService ()
 
 getSignalSlotDispatcher ()
 

Protected Attributes

 $standaloneView = null
 
 $totalCount = 0
 
 $highestSeverity
 
 $severityBadgeClass = ''
 
 $systemInformation = []
 
 $systemMessages = []
 
 $signalSlotDispatcher = null
 
 $iconFactory
 
 $maximumCountInBadge = 99
 

Detailed Description

Render system info toolbar item

Definition at line 35 of file SystemInformationToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ addSystemInformation()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addSystemInformation (   $title,
  $value,
  $icon 
)

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

Parameters
string$titleThe title of this system information
string$valueThe associated value
string$iconThe icon html

Definition at line 330 of file SystemInformationToolbarItem.php.

◆ checkAccess()

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

◆ collectInformation()

◆ emitGetSystemInformation()

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

◆ emitLoadMessages()

◆ getAdditionalAttributes()

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

No additional attributes needed.

Returns
array

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 389 of file SystemInformationToolbarItem.php.

◆ getApplicationContext()

◆ getBackendUserAuthentication()

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

Returns the current BE user.

Returns

Definition at line 419 of file SystemInformationToolbarItem.php.

References $GLOBALS.

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

◆ getComposerMode()

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

◆ getDatabase()

◆ getDatabaseConnection()

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

Returns DatabaseConnection

Returns

Definition at line 429 of file SystemInformationToolbarItem.php.

References $GLOBALS.

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

◆ getDropDown()

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

◆ getGitRevision()

◆ getIndex()

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

Position relative to others

Returns
int

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 409 of file SystemInformationToolbarItem.php.

◆ getItem()

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

◆ getLanguageService()

◆ getOperatingSystem()

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

◆ getPageRenderer()

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

◆ getPhpVersion()

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

◆ getSignalSlotDispatcher()

◆ getWebServer()

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

◆ hasDropDown()

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

This item has a drop down

Returns
bool

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 399 of file SystemInformationToolbarItem.php.

◆ renderMenuAction()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::renderMenuAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Renders the menu for AJAX calls

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 139 of file SystemInformationToolbarItem.php.

References TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\collectInformation(), and TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\getDropDown().

Member Data Documentation

◆ $highestSeverity

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

Definition at line 59 of file SystemInformationToolbarItem.php.

◆ $iconFactory

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$iconFactory
protected

Definition at line 86 of file SystemInformationToolbarItem.php.

◆ $maximumCountInBadge

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$maximumCountInBadge = 99
protected

Definition at line 91 of file SystemInformationToolbarItem.php.

◆ $severityBadgeClass

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

Definition at line 66 of file SystemInformationToolbarItem.php.

◆ $signalSlotDispatcher

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$signalSlotDispatcher = null
protected

◆ $standaloneView

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$standaloneView = null
protected

Definition at line 40 of file SystemInformationToolbarItem.php.

◆ $systemInformation

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

Definition at line 71 of file SystemInformationToolbarItem.php.

◆ $systemMessages

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

Definition at line 76 of file SystemInformationToolbarItem.php.

◆ $totalCount

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$totalCount = 0
protected

Definition at line 52 of file SystemInformationToolbarItem.php.

◆ TOOLBAR_MENU_TEMPLATE

const TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::TOOLBAR_MENU_TEMPLATE = 'SystemInformation.html'

Template file for the dropdown menu

Definition at line 45 of file SystemInformationToolbarItem.php.