SystemInformationToolbarItem implements ToolbarItemInterface

Render system info toolbar item

Table of Contents

Interfaces

ToolbarItemInterface
Interface for classes which extend the backend by adding items to the top toolbar

Properties

$eventDispatcher  : EventDispatcherInterface
$highestSeverity  : InformationStatus
Holds the highest severity
$maximumCountInBadge  : int
$severityBadgeClass  : string
The CSS class for the badge
$systemInformation  : array<string|int, mixed>
$systemMessages  : array<string|int, mixed>
$totalCount  : int
Number displayed as badge on the dropdown trigger
$typo3Version  : Typo3Version

Methods

__construct()  : mixed
addSystemInformation()  : mixed
Add a system information.
addSystemMessage()  : mixed
Add a system message.
checkAccess()  : bool
Checks whether the user has access to this toolbar item
getAdditionalAttributes()  : array<string|int, mixed>
No additional attributes needed.
getDropDown()  : string
Render drop down
getIndex()  : int
Position relative to others
getItem()  : string
Render system information dropdown
hasDropDown()  : bool
This item has a drop down
collectInformation()  : mixed
Collect the information for the menu
getApplicationContext()  : mixed
Gets the application context
getBackendUserAuthentication()  : BackendUserAuthentication
Returns the current BE user.
getComposerMode()  : mixed
Adds the information if the Composer mode is enabled or disabled to the displayed system information
getDatabase()  : mixed
Get the database info
getDebugger()  : void
getFluidTemplateObject()  : StandaloneView
Returns a new standalone view, shorthand function
getGitRevision()  : mixed
Gets the current GIT revision and branch
getLanguageService()  : LanguageService|null
getOperatingSystem()  : mixed
Gets the system kernel and version
getPageRenderer()  : PageRenderer
Returns current PageRenderer
getPhpVersion()  : mixed
Gets the PHP version
getTypo3Version()  : mixed
Gets the TYPO3 version
getWebServer()  : mixed
Gets the webserver software
isFunctionDisabled()  : bool
Check if the given PHP function is disabled in the system

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

$maximumCountInBadge

protected int $maximumCountInBadge = 99

$severityBadgeClass

The CSS class for the badge

protected string $severityBadgeClass = ''

$systemInformation

protected array<string|int, mixed> $systemInformation = []

$systemMessages

protected array<string|int, mixed> $systemMessages = []

$totalCount

Number displayed as badge on the dropdown trigger

protected int $totalCount = 0

Methods

__construct()

public __construct([EventDispatcherInterface|null $eventDispatcher = null ]) : mixed
Parameters
$eventDispatcher : EventDispatcherInterface|null = null

addSystemInformation()

Add a system information.

public addSystemInformation(string $title, string $value, string $iconIdentifier[, string $status = InformationStatus::STATUS_NOTICE ]) : mixed

This is a callback method for signal receivers.

Parameters
$title : string

The title of this system information

$value : string

The associated value

$iconIdentifier : string

The icon identifier

$status : string = InformationStatus::STATUS_NOTICE

The status of this system information

addSystemMessage()

Add a system message.

public addSystemMessage(string $text[, string $status = InformationStatus::STATUS_OK ][, int $count = 0 ][, string $module = '' ][, string $params = '' ]) : mixed

This is a callback method for signal receivers.

Parameters
$text : string

The text to be displayed

$status : string = InformationStatus::STATUS_OK

The status of this system message

$count : int = 0

Will be added to the total count

$module : string = ''

The associated module

$params : string = ''

Query string with additional parameters

checkAccess()

Checks whether the user has access to this toolbar item

public checkAccess() : bool
Return values
bool

TRUE if user has access, FALSE if not

getAdditionalAttributes()

No additional attributes needed.

public getAdditionalAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDropDown()

Render drop down

public getDropDown() : string
Return values
string

Drop down HTML

getIndex()

Position relative to others

public getIndex() : int
Return values
int

getItem()

Render system information dropdown

public getItem() : string
Return values
string

Icon HTML

hasDropDown()

This item has a drop down

public hasDropDown() : bool
Return values
bool

collectInformation()

Collect the information for the menu

protected collectInformation() : mixed

getApplicationContext()

Gets the application context

protected getApplicationContext() : mixed

getComposerMode()

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

protected getComposerMode() : mixed

getDatabase()

Get the database info

protected getDatabase() : mixed

getDebugger()

protected getDebugger() : void

getFluidTemplateObject()

Returns a new standalone view, shorthand function

protected getFluidTemplateObject(string $filename) : StandaloneView
Parameters
$filename : string

Which templateFile should be used.

Return values
StandaloneView

getGitRevision()

Gets the current GIT revision and branch

protected getGitRevision() : mixed

getOperatingSystem()

Gets the system kernel and version

protected getOperatingSystem() : mixed

getPhpVersion()

Gets the PHP version

protected getPhpVersion() : mixed

getTypo3Version()

Gets the TYPO3 version

protected getTypo3Version() : mixed

getWebServer()

Gets the webserver software

protected getWebServer() : mixed

isFunctionDisabled()

Check if the given PHP function is disabled in the system

protected isFunctionDisabled(string $functionName) : bool
Parameters
$functionName : string
Return values
bool

        
On this page

Search results