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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

 $actionEntries = array()
 
 $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 ( )

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

Returns
bool TRUE

Implements ToolbarItemInterface.

Definition at line 145 of file ActionToolbarItem.php.

getAdditionalAttributes ( )

This toolbar needs no additional attributes

Returns
array

Implements ToolbarItemInterface.

Definition at line 125 of file ActionToolbarItem.php.

getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 169 of file ActionToolbarItem.php.

References $GLOBALS.

Referenced by ActionToolbarItem\initializeActionEntries().

getDatabaseConnection ( )
protected

Return DatabaseConnection

Returns

Definition at line 189 of file ActionToolbarItem.php.

References $GLOBALS.

Referenced by ActionToolbarItem\initializeActionEntries().

getDropDown ( )

Render drop down

Returns
string HTML

Implements ToolbarItemInterface.

Definition at line 64 of file ActionToolbarItem.php.

getIndex ( )

Position relative to others

Returns
int

Implements ToolbarItemInterface.

Definition at line 159 of file ActionToolbarItem.php.

getItem ( )

Render toolbar icon

Returns
string HTML

Implements ToolbarItemInterface.

Definition at line 53 of file ActionToolbarItem.php.

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

getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 179 of file ActionToolbarItem.php.

References $GLOBALS.

Referenced by ActionToolbarItem\__construct(), and ActionToolbarItem\getItem().

hasDropDown ( )

This item has a drop down

Returns
bool

Implements ToolbarItemInterface.

Definition at line 135 of file ActionToolbarItem.php.

initializeActionEntries ( )
protected

Gets the entries for the action menu

Returns
array Array of action menu entries

Definition at line 84 of file ActionToolbarItem.php.

References ActionToolbarItem\getBackendUser(), ActionToolbarItem\getDatabaseConnection(), and Icon\SIZE_SMALL.

Referenced by ActionToolbarItem\__construct().

Member Data Documentation

$actionEntries = array()
protected

Definition at line 31 of file ActionToolbarItem.php.

$iconFactory
protected

Definition at line 36 of file ActionToolbarItem.php.