‪TYPO3CMS  10.4
TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider Class Reference

Public Member Functions

 __construct ()
 
 getItem (SystemInformationToolbarCollectorEvent $event)
 

Protected Attributes

array $lastRunInformation = array( )
 

Private Member Functions

bool schedulerWasExecuted ()
 
bool lastRunInfoExists ()
 
bool hasConfiguredTasks ()
 
LanguageService getLanguageService ()
 

Detailed Description

Event listener to display information about last automated run, as stored in the system registry.

Definition at line 32 of file ToolbarItemProvider.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider::__construct ( )

Gather initial information

Definition at line 43 of file ToolbarItemProvider.php.

Member Function Documentation

◆ getItem()

◆ getLanguageService()

LanguageService TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider::getLanguageService ( )
private
Returns
‪LanguageService

Definition at line 157 of file ToolbarItemProvider.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider\getItem().

◆ hasConfiguredTasks()

bool TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider::hasConfiguredTasks ( )
private

See if there are any tasks configured at all.

Returns
‪bool

Definition at line 141 of file ToolbarItemProvider.php.

Referenced by TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider\getItem().

◆ lastRunInfoExists()

bool TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider::lastRunInfoExists ( )
private

Check if the last scheduler run array contains all information

Returns
‪bool

Definition at line 129 of file ToolbarItemProvider.php.

Referenced by TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider\getItem().

◆ schedulerWasExecuted()

bool TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider::schedulerWasExecuted ( )
private

Check whether the scheduler was already executed

Returns
‪bool

Definition at line 119 of file ToolbarItemProvider.php.

Referenced by TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider\getItem().

Member Data Documentation

◆ $lastRunInformation

array TYPO3\CMS\Scheduler\SystemInformation\ToolbarItemProvider::$lastRunInformation = array( )
protected

Scheduler last run registry information

Definition at line 38 of file ToolbarItemProvider.php.