TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
SystemInformationToolbarItem Class Reference
Inheritance diagram for SystemInformationToolbarItem:
ToolbarItemInterface

Public Member Functions

 __construct ()
 
 renderMenuAction (ServerRequestInterface $request, ResponseInterface $response)
 
 addSystemInformation ($title, $value, $icon, $status=InformationStatus::STATUS_NOTICE)
 
 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 ()
 
 getTypo3Version ()
 
 emitGetSystemInformation ()
 
 emitLoadMessages ()
 
 getBackendUserAuthentication ()
 
 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 37 of file SystemInformationToolbarItem.php.

Constructor & Destructor Documentation

Member Function Documentation

addSystemInformation (   $title,
  $value,
  $icon,
  $status = InformationStatus::STATUS_NOTICE 
)

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
string$statusThe status of this system information

Definition at line 352 of file SystemInformationToolbarItem.php.

checkAccess ( )

Checks whether the user has access to this toolbar item

Returns
bool TRUE if user has access, FALSE if not

Implements ToolbarItemInterface.

Definition at line 367 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getBackendUserAuthentication().

Referenced by SystemInformationToolbarItem\__construct(), and SystemInformationToolbarItem\getDropDown().

emitGetSystemInformation ( )
protected

Emits the "getSystemInformation" signal

Returns
void

Definition at line 300 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getSignalSlotDispatcher().

Referenced by SystemInformationToolbarItem\collectInformation().

emitLoadMessages ( )
protected

Emits the "loadMessages" signal

Returns
void

Definition at line 310 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getSignalSlotDispatcher().

Referenced by SystemInformationToolbarItem\collectInformation().

getAdditionalAttributes ( )

No additional attributes needed.

Returns
array

Implements ToolbarItemInterface.

Definition at line 416 of file SystemInformationToolbarItem.php.

getBackendUserAuthentication ( )
protected

Returns the current BE user.

Returns

Definition at line 446 of file SystemInformationToolbarItem.php.

References $GLOBALS.

Referenced by SystemInformationToolbarItem\checkAccess().

getComposerMode ( )
protected

Adds the information if the Composer mode is enabled or disabled to the displayed system information

Definition at line 204 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getLanguageService(), Icon\SIZE_SMALL, and Bootstrap\usesComposerClassLoading().

Referenced by SystemInformationToolbarItem\collectInformation().

getDatabase ( )
protected
getDropDown ( )

Render drop down

Returns
string Drop down HTML

Implements ToolbarItemInterface.

Definition at line 393 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\checkAccess().

Referenced by SystemInformationToolbarItem\renderMenuAction().

getGitRevision ( )
protected
getIndex ( )

Position relative to others

Returns
int

Implements ToolbarItemInterface.

Definition at line 436 of file SystemInformationToolbarItem.php.

getItem ( )

Render system information dropdown

Returns
string Icon HTML

Implements ToolbarItemInterface.

Definition at line 377 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getLanguageService(), and Icon\SIZE_SMALL.

getOperatingSystem ( )
protected

Gets the system kernel and version

Returns
void

Definition at line 251 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getLanguageService(), and Icon\SIZE_SMALL.

Referenced by SystemInformationToolbarItem\collectInformation().

getPageRenderer ( )
protected

Returns current PageRenderer

Returns
PageRenderer

Definition at line 456 of file SystemInformationToolbarItem.php.

References GeneralUtility\makeInstance().

Referenced by SystemInformationToolbarItem\__construct().

getPhpVersion ( )
protected

Gets the PHP version

Returns
void

Definition at line 156 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getLanguageService(), and Icon\SIZE_SMALL.

Referenced by SystemInformationToolbarItem\collectInformation().

getSignalSlotDispatcher ( )
protected
getWebServer ( )
protected
hasDropDown ( )

This item has a drop down

Returns
bool

Implements ToolbarItemInterface.

Definition at line 426 of file SystemInformationToolbarItem.php.

renderMenuAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Renders the menu for AJAX calls

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 142 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\collectInformation(), and SystemInformationToolbarItem\getDropDown().

Member Data Documentation

$highestSeverity
protected

Definition at line 61 of file SystemInformationToolbarItem.php.

$iconFactory
protected

Definition at line 88 of file SystemInformationToolbarItem.php.

$maximumCountInBadge = 99
protected

Definition at line 93 of file SystemInformationToolbarItem.php.

$severityBadgeClass = ''
protected

Definition at line 68 of file SystemInformationToolbarItem.php.

$signalSlotDispatcher = null
protected
$standaloneView = null
protected

Definition at line 42 of file SystemInformationToolbarItem.php.

$systemInformation = []
protected

Definition at line 73 of file SystemInformationToolbarItem.php.

$systemMessages = []
protected

Definition at line 78 of file SystemInformationToolbarItem.php.

$totalCount = 0
protected

Definition at line 54 of file SystemInformationToolbarItem.php.

const TOOLBAR_MENU_TEMPLATE = 'SystemInformation.html'

Template file for the dropdown menu

Definition at line 47 of file SystemInformationToolbarItem.php.