‪TYPO3CMS  11.5
TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem Class Reference
Inheritance diagram for TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem:
TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface

Public Member Functions

 __construct ()
 
bool checkAccess ()
 
string getItem ()
 
string getDropDown ()
 
array getAdditionalAttributes ()
 
bool hasDropDown ()
 
int getIndex ()
 

Protected Member Functions

TYPO3 CMS Core Authentication BackendUserAuthentication getBackendUser ()
 
PageRenderer getPageRenderer ()
 
StandaloneView getFluidTemplateObject (string $filename)
 

Protected Attributes

array $availableWorkspaces
 

Detailed Description

Class to render the workspace selector

Definition at line 30 of file WorkspaceSelectorToolbarItem.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ checkAccess()

bool TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::checkAccess ( )

Checks whether the user has access to this toolbar item

Returns
‪bool TRUE if user has access, FALSE if not

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 55 of file WorkspaceSelectorToolbarItem.php.

◆ getAdditionalAttributes()

array TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getAdditionalAttributes ( )

This toolbar needs no additional attributes

Returns
‪array

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 116 of file WorkspaceSelectorToolbarItem.php.

◆ getBackendUser()

TYPO3 CMS Core Authentication BackendUserAuthentication TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getBackendUser ( )
protected

Returns the current BE user.

Returns
‪\TYPO3\CMS\Core\Authentication\BackendUserAuthentication

Definition at line 146 of file WorkspaceSelectorToolbarItem.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem\__construct(), and TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem\getDropDown().

◆ getDropDown()

string TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getDropDown ( )

◆ getFluidTemplateObject()

StandaloneView TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getFluidTemplateObject ( string  $filename)
protected

Returns a new standalone view, shorthand function

Parameters
string$filename‪Which templateFile should be used.
Returns
‪StandaloneView

Definition at line 167 of file WorkspaceSelectorToolbarItem.php.

Referenced by TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem\getDropDown(), and TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem\getItem().

◆ getIndex()

int TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getIndex ( )

Position relative to others

Returns
‪int

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 136 of file WorkspaceSelectorToolbarItem.php.

◆ getItem()

string TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getItem ( )

◆ getPageRenderer()

PageRenderer TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::getPageRenderer ( )
protected

Returns current PageRenderer

Returns
‪PageRenderer

Definition at line 156 of file WorkspaceSelectorToolbarItem.php.

Referenced by TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem\__construct().

◆ hasDropDown()

bool TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::hasDropDown ( )

This item has a drop down

Returns
‪bool

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 126 of file WorkspaceSelectorToolbarItem.php.

Member Data Documentation

◆ $availableWorkspaces

array TYPO3\CMS\Workspaces\Backend\ToolbarItems\WorkspaceSelectorToolbarItem::$availableWorkspaces
protected

Definition at line 34 of file WorkspaceSelectorToolbarItem.php.