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

Public Member Functions

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

Protected Member Functions

 getBackendUser ()
 
 getPageRenderer ()
 
 getLanguageService ()
 

Protected Attributes

 $availableWorkspaces
 
 $iconFactory
 

Detailed Description

Class to render the workspace selector

Definition at line 27 of file WorkspaceSelectorToolbarItem.php.

Member Function Documentation

checkAccess ( )

Checks whether the user has access to this toolbar item

Returns
bool TRUE if user has access, FALSE if not

Implements ToolbarItemInterface.

Definition at line 59 of file WorkspaceSelectorToolbarItem.php.

getAdditionalAttributes ( )

This toolbar needs no additional attributes

Returns
array

Implements ToolbarItemInterface.

Definition at line 138 of file WorkspaceSelectorToolbarItem.php.

getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 168 of file WorkspaceSelectorToolbarItem.php.

References $GLOBALS.

Referenced by WorkspaceSelectorToolbarItem\getDropDown().

getDropDown ( )
getIndex ( )

Position relative to others

Returns
int

Implements ToolbarItemInterface.

Definition at line 158 of file WorkspaceSelectorToolbarItem.php.

getItem ( )

Render item

Returns
string HTML

Implements ToolbarItemInterface.

Definition at line 69 of file WorkspaceSelectorToolbarItem.php.

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

getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 188 of file WorkspaceSelectorToolbarItem.php.

References $GLOBALS.

Referenced by WorkspaceSelectorToolbarItem\getDropDown(), and WorkspaceSelectorToolbarItem\getItem().

getPageRenderer ( )
protected

Returns current PageRenderer

Returns
PageRenderer

Definition at line 178 of file WorkspaceSelectorToolbarItem.php.

References GeneralUtility\makeInstance().

hasDropDown ( )

This item has a drop down

Returns
bool

Implements ToolbarItemInterface.

Definition at line 148 of file WorkspaceSelectorToolbarItem.php.

Member Data Documentation

$availableWorkspaces
protected

Definition at line 32 of file WorkspaceSelectorToolbarItem.php.

$iconFactory
protected

Definition at line 37 of file WorkspaceSelectorToolbarItem.php.