TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SystemInformationToolbarItem Class Reference
Inheritance diagram for SystemInformationToolbarItem:
ToolbarItemInterface

Public Member Functions

 __construct ()
 
 renderMenuAction (ServerRequestInterface $request, ResponseInterface $response)
 
 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 ()
 
 getBackendUserAuthentication ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 
 getLanguageService ()
 
 getSignalSlotDispatcher ()
 

Protected Attributes

 $standaloneView = null
 
 $totalCount = 0
 
 $highestSeverity
 
 $severityBadgeClass = ''
 
 $systemInformation = array()
 
 $systemMessages = array()
 
 $signalSlotDispatcher = null
 
 $iconFactory
 

Detailed Description

Render system info toolbar item

Definition at line 35 of file SystemInformationToolbarItem.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

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 316 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getBackendUserAuthentication().

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

collectInformation ( )
protected
emitGetSystemInformation ( )
protected
getAdditionalAttributes ( )

No additional attributes needed.

Returns
array

Implements ToolbarItemInterface.

Definition at line 361 of file SystemInformationToolbarItem.php.

getApplicationContext ( )
protected
getBackendUserAuthentication ( )
protected

Returns the current BE user.

Returns

Definition at line 391 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 190 of file SystemInformationToolbarItem.php.

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

Referenced by SystemInformationToolbarItem\collectInformation().

getDatabase ( )
protected
getDatabaseConnection ( )
protected

Returns DatabaseConnection

Returns

Definition at line 401 of file SystemInformationToolbarItem.php.

References $GLOBALS.

Referenced by SystemInformationToolbarItem\getDatabase().

getDropDown ( )

Render drop down

Returns
string Drop down HTML

Implements ToolbarItemInterface.

Definition at line 338 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\checkAccess().

Referenced by SystemInformationToolbarItem\renderMenuAction().

getGitRevision ( )
protected

Gets the current GIT revision and branch

Returns
void

Definition at line 209 of file SystemInformationToolbarItem.php.

References StringUtility\endsWith(), CommandUtility\exec(), and SystemInformationToolbarItem\getLanguageService().

Referenced by SystemInformationToolbarItem\collectInformation().

getIndex ( )

Position relative to others

Returns
int

Implements ToolbarItemInterface.

Definition at line 381 of file SystemInformationToolbarItem.php.

getItem ( )

Render system information dropdown

Returns
string Icon HTML

Implements ToolbarItemInterface.

Definition at line 326 of file SystemInformationToolbarItem.php.

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

getLanguageService ( )
protected
getOperatingSystem ( )
protected

Gets the system kernel and version

Returns
void

Definition at line 237 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getLanguageService().

Referenced by SystemInformationToolbarItem\collectInformation().

getPageRenderer ( )
protected

Returns current PageRenderer

Returns
PageRenderer

Definition at line 411 of file SystemInformationToolbarItem.php.

References GeneralUtility\makeInstance().

Referenced by SystemInformationToolbarItem\__construct().

getPhpVersion ( )
protected

Gets the PHP version

Returns
void

Definition at line 148 of file SystemInformationToolbarItem.php.

References SystemInformationToolbarItem\getLanguageService().

Referenced by SystemInformationToolbarItem\collectInformation().

getSignalSlotDispatcher ( )
protected
getWebServer ( )
protected
hasDropDown ( )

This item has a drop down

Returns
bool

Implements ToolbarItemInterface.

Definition at line 371 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 134 of file SystemInformationToolbarItem.php.

References $response, SystemInformationToolbarItem\collectInformation(), MessageInterface\getBody(), SystemInformationToolbarItem\getDropDown(), and MessageInterface\withHeader().

Member Data Documentation

$highestSeverity
protected

Definition at line 59 of file SystemInformationToolbarItem.php.

$iconFactory
protected

Definition at line 86 of file SystemInformationToolbarItem.php.

$severityBadgeClass = ''
protected

Definition at line 66 of file SystemInformationToolbarItem.php.

$signalSlotDispatcher = null
protected
$standaloneView = null
protected

Definition at line 40 of file SystemInformationToolbarItem.php.

$systemInformation = array()
protected
$systemMessages = array()
protected

Definition at line 76 of file SystemInformationToolbarItem.php.

$totalCount = 0
protected

Definition at line 52 of file SystemInformationToolbarItem.php.

const TOOLBAR_MENU_TEMPLATE = 'SystemInformation.html'

Template file for the dropdown menu

Definition at line 45 of file SystemInformationToolbarItem.php.