TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\SysAction\ActionToolbarMenu Class Reference
Inheritance diagram for TYPO3\CMS\SysAction\ActionToolbarMenu:
TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface tx_sysactionToolbarMenu

Public Member Functions

 __construct (\TYPO3\CMS\Backend\Controller\BackendController &$backendReference=NULL)
 
 setBackend (\TYPO3\CMS\Backend\Controller\BackendController &$backendReference)
 
 render ()
 
 getAdditionalAttributes ()
 
 checkAccess ()
 

Protected Member Functions

 getActionEntries ()
 
 addJavascriptToBackend ()
 
 addCssToBackend ()
 

Protected Attributes

 $backendReference
 
 $extensionKey = 'sys_action'
 

Detailed Description

Adds action links to the backend's toolbar

Author
Steffen Kamper info@.nosp@m.sk-t.nosp@m.ypo3..nosp@m.de

Definition at line 23 of file ActionToolbarMenu.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\SysAction\ActionToolbarMenu::__construct ( \TYPO3\CMS\Backend\Controller\BackendController $backendReference = NULL)

Member Function Documentation

◆ addCssToBackend()

TYPO3\CMS\SysAction\ActionToolbarMenu::addCssToBackend ( )
protected

Adds the necessary css ot the backend

Returns
void

Definition at line 145 of file ActionToolbarMenu.php.

Referenced by TYPO3\CMS\SysAction\ActionToolbarMenu\render().

◆ addJavascriptToBackend()

TYPO3\CMS\SysAction\ActionToolbarMenu::addJavascriptToBackend ( )
protected

Adds the necessary javascript ot the backend

Returns
void

Definition at line 134 of file ActionToolbarMenu.php.

Referenced by TYPO3\CMS\SysAction\ActionToolbarMenu\render().

◆ checkAccess()

TYPO3\CMS\SysAction\ActionToolbarMenu::checkAccess ( )

Checks if user has access to the sys action menu

Returns
boolean TRUE if the user has access, FALSE otherwise

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface.

Definition at line 157 of file ActionToolbarMenu.php.

◆ getActionEntries()

TYPO3\CMS\SysAction\ActionToolbarMenu::getActionEntries ( )
protected

Gets the entries for the action menu

Returns
array Array of action menu entries
Author
Steffen Kamper info@.nosp@m.sk-t.nosp@m.ypo3..nosp@m.de
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org

Definition at line 87 of file ActionToolbarMenu.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl().

Referenced by TYPO3\CMS\SysAction\ActionToolbarMenu\render().

◆ getAdditionalAttributes()

TYPO3\CMS\SysAction\ActionToolbarMenu::getAdditionalAttributes ( )

Returns additional attributes for the list item in the toolbar

Returns
string List item HTML attibutes

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface.

Definition at line 125 of file ActionToolbarMenu.php.

◆ render()

◆ setBackend()

TYPO3\CMS\SysAction\ActionToolbarMenu::setBackend ( \TYPO3\CMS\Backend\Controller\BackendController $backendReference)

Sets the backend reference

Parameters
\TYPO3\CMS\Backend\Controller\BackendController$backendReferenceBackend object reference
Returns
void

Definition at line 51 of file ActionToolbarMenu.php.

References TYPO3\CMS\SysAction\ActionToolbarMenu\$backendReference.

Member Data Documentation

◆ $backendReference

TYPO3\CMS\SysAction\ActionToolbarMenu::$backendReference
protected

◆ $extensionKey

TYPO3\CMS\SysAction\ActionToolbarMenu::$extensionKey = 'sys_action'
protected

Definition at line 35 of file ActionToolbarMenu.php.