TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem Class Reference
Inheritance diagram for TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem:
TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface

Public Member Functions

 __construct ()
 
 getItem ()
 
 getDropDown ()
 
 getAdditionalAttributes ()
 
 hasDropDown ()
 
 checkAccess ()
 
 getIndex ()
 

Protected Member Functions

 initializeActionEntries ()
 
 getBackendUser ()
 
 getLanguageService ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $actionEntries = []
 
 $iconFactory
 

Detailed Description

Adds action links to the backend's toolbar

Definition at line 26 of file ActionToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ checkAccess()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::checkAccess ( )

This toolbar is rendered if there are action entries, no further user restriction

Returns
bool TRUE

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 145 of file ActionToolbarItem.php.

◆ getAdditionalAttributes()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::getAdditionalAttributes ( )

This toolbar needs no additional attributes

Returns
array

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 125 of file ActionToolbarItem.php.

◆ getBackendUser()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 169 of file ActionToolbarItem.php.

References $GLOBALS.

Referenced by TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem\initializeActionEntries().

◆ getDatabaseConnection()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::getDatabaseConnection ( )
protected

Return DatabaseConnection

Returns

Definition at line 189 of file ActionToolbarItem.php.

References $GLOBALS.

Referenced by TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem\initializeActionEntries().

◆ getDropDown()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::getDropDown ( )

Render drop down

Returns
string HTML

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 64 of file ActionToolbarItem.php.

◆ getIndex()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::getIndex ( )

Position relative to others

Returns
int

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 159 of file ActionToolbarItem.php.

◆ getItem()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::getItem ( )

◆ getLanguageService()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::getLanguageService ( )
protected

◆ hasDropDown()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::hasDropDown ( )

This item has a drop down

Returns
bool

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 135 of file ActionToolbarItem.php.

◆ initializeActionEntries()

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::initializeActionEntries ( )
protected

Member Data Documentation

◆ $actionEntries

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::$actionEntries = []
protected

Definition at line 31 of file ActionToolbarItem.php.

◆ $iconFactory

TYPO3\CMS\SysAction\Backend\ToolbarItems\ActionToolbarItem::$iconFactory
protected

Definition at line 36 of file ActionToolbarItem.php.