‪TYPO3CMS  11.5
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 (EventDispatcherInterface $eventDispatcher=null)
 
 addSystemMessage ($text, $status=InformationStatus::STATUS_OK, $count=0, $module='', $params='')
 
 addSystemInformation ($title, $value, $iconIdentifier, $status=InformationStatus::STATUS_NOTICE)
 
bool checkAccess ()
 
string getItem ()
 
string getDropDown ()
 
array getAdditionalAttributes ()
 
bool hasDropDown ()
 
int getIndex ()
 

Protected Member Functions

 collectInformation ()
 
 getTypo3Version ()
 
 getWebServer ()
 
 getPhpVersion ()
 
 getDebugger ()
 
 getDatabase ()
 
 getApplicationContext ()
 
 getComposerMode ()
 
 getGitRevision ()
 
 getOperatingSystem ()
 
StandaloneView getFluidTemplateObject (string $filename)
 
bool isFunctionDisabled (string $functionName)
 
TYPO3 CMS Core Authentication BackendUserAuthentication getBackendUserAuthentication ()
 
LanguageService null getLanguageService ()
 
PageRenderer getPageRenderer ()
 

Protected Attributes

int $totalCount = 0
 
InformationStatus $highestSeverity
 
string $severityBadgeClass = ''
 
array $systemInformation = array( )
 
array $systemMessages = array( )
 
EventDispatcherInterface $eventDispatcher
 
int $maximumCountInBadge = 99
 
Typo3Version $typo3Version
 

Detailed Description

Render system info toolbar item

Definition at line 36 of file SystemInformationToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ addSystemInformation()

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

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

Parameters
string$title‪The title of this system information
string$value‪The associated value
string$iconIdentifier‪The icon identifier
string$status‪The status of this system information

Definition at line 122 of file SystemInformationToolbarItem.php.

◆ addSystemMessage()

TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::addSystemMessage (   $text,
  $status = InformationStatus::STATUS_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$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 94 of file SystemInformationToolbarItem.php.

References TYPO3\CMS\Core\Type\Enumeration\cast().

◆ checkAccess()

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

◆ collectInformation()

◆ getAdditionalAttributes()

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

No additional attributes needed.

Returns
‪array

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 189 of file SystemInformationToolbarItem.php.

◆ getApplicationContext()

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

◆ getBackendUserAuthentication()

TYPO3 CMS Core Authentication BackendUserAuthentication TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::getBackendUserAuthentication ( )
protected

Returns the current BE user.

Returns
‪\TYPO3\CMS\Core\Authentication\BackendUserAuthentication

Definition at line 430 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()

◆ getDebugger()

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

◆ getDropDown()

◆ getFluidTemplateObject()

StandaloneView TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::getFluidTemplateObject ( string  $filename)
protected

Returns a new standalone view, shorthand function

Parameters
string$filename‪Which templateFile should be used.
Returns
‪StandaloneView

Definition at line 397 of file SystemInformationToolbarItem.php.

Referenced by TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\getDropDown(), and TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem\getItem().

◆ getGitRevision()

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

◆ getIndex()

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

Position relative to others

Returns
‪int

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 209 of file SystemInformationToolbarItem.php.

◆ getItem()

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

◆ getLanguageService()

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

◆ getOperatingSystem()

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

Gets the system kernel and version

Definition at line 369 of file SystemInformationToolbarItem.php.

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

◆ getPageRenderer()

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

Returns current PageRenderer

Returns
‪PageRenderer

Definition at line 448 of file SystemInformationToolbarItem.php.

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

◆ getPhpVersion()

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

◆ getTypo3Version()

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

◆ getWebServer()

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

◆ hasDropDown()

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

This item has a drop down

Returns
‪bool

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 199 of file SystemInformationToolbarItem.php.

◆ isFunctionDisabled()

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

Check if the given PHP function is disabled in the system

Parameters
string$functionName
Returns
‪bool

Definition at line 416 of file SystemInformationToolbarItem.php.

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

Member Data Documentation

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$eventDispatcher
protected

◆ $highestSeverity

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

Holds the highest severity

Definition at line 48 of file SystemInformationToolbarItem.php.

◆ $maximumCountInBadge

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

Definition at line 70 of file SystemInformationToolbarItem.php.

◆ $severityBadgeClass

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

The CSS class for the badge

Definition at line 54 of file SystemInformationToolbarItem.php.

◆ $systemInformation

array TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$systemInformation = array( )
protected

Definition at line 58 of file SystemInformationToolbarItem.php.

◆ $systemMessages

array TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$systemMessages = array( )
protected

Definition at line 62 of file SystemInformationToolbarItem.php.

◆ $totalCount

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

Number displayed as badge on the dropdown trigger

Definition at line 42 of file SystemInformationToolbarItem.php.

◆ $typo3Version

Typo3Version TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::$typo3Version
protected

Definition at line 74 of file SystemInformationToolbarItem.php.