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

Public Member Functions

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

Protected Member Functions

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

Detailed Description

User toolbar item

This class is a specific Backend implementation and is not considered part of the Public TYPO3 API.

Definition at line 32 of file UserToolbarItem.php.

Member Function Documentation

◆ checkAccess()

bool TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem::checkAccess ( )

Item is always enabled

Returns
‪bool TRUE

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 39 of file UserToolbarItem.php.

◆ getAdditionalAttributes()

array TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem::getAdditionalAttributes ( )

Returns an additional class if user is in "switch user" mode

Returns
‪array

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 127 of file UserToolbarItem.php.

References TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem\getBackendUser().

◆ getBackendUser()

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

Returns the current BE user.

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

Definition at line 163 of file UserToolbarItem.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem\getAdditionalAttributes(), TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem\getDropDown(), and TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem\getItem().

◆ getDropDown()

string TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem::getDropDown ( )

◆ getFluidTemplateObject()

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

Returns a new standalone view, shorthand function

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

Definition at line 175 of file UserToolbarItem.php.

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

◆ getIndex()

int TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem::getIndex ( )

Position relative to others

Returns
‪int

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 153 of file UserToolbarItem.php.

◆ getItem()

string TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem::getItem ( )

◆ hasDropDown()

bool TYPO3\CMS\Backend\Backend\ToolbarItems\UserToolbarItem::hasDropDown ( )

This item has a drop down

Returns
‪bool

Implements TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface.

Definition at line 143 of file UserToolbarItem.php.