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

Public Member Functions

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

Protected Member Functions

 getBackendUser ()
 
 getPageRenderer ()
 
 getLanguageService ()
 

Protected Attributes

 $cacheActions = array()
 
 $optionValues = array()
 
 $iconFactory
 

Detailed Description

Render cache clearing toolbar item

Definition at line 28 of file ClearCacheToolbarItem.php.

Constructor & Destructor Documentation

__construct ( )

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 115 of file ClearCacheToolbarItem.php.

References ClearCacheToolbarItem\getBackendUser().

getAdditionalAttributes ( )

No additional attributes needed.

Returns
array

Implements ToolbarItemInterface.

Definition at line 170 of file ClearCacheToolbarItem.php.

getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 200 of file ClearCacheToolbarItem.php.

References $GLOBALS.

Referenced by ClearCacheToolbarItem\__construct(), and ClearCacheToolbarItem\checkAccess().

getDropDown ( )

Render drop down

Returns
string Drop down HTML

Implements ToolbarItemInterface.

Definition at line 149 of file ClearCacheToolbarItem.php.

getIndex ( )

Position relative to others

Returns
int

Implements ToolbarItemInterface.

Definition at line 190 of file ClearCacheToolbarItem.php.

getItem ( )

Render clear cache icon

Returns
string Icon HTML

Implements ToolbarItemInterface.

Definition at line 136 of file ClearCacheToolbarItem.php.

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

getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 220 of file ClearCacheToolbarItem.php.

References $GLOBALS.

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

getPageRenderer ( )
protected

Returns current PageRenderer

Returns
PageRenderer

Definition at line 210 of file ClearCacheToolbarItem.php.

References GeneralUtility\makeInstance().

Referenced by ClearCacheToolbarItem\__construct().

hasDropDown ( )

This item has a drop down

Returns
bool

Implements ToolbarItemInterface.

Definition at line 180 of file ClearCacheToolbarItem.php.

Member Data Documentation

$cacheActions = array()
protected

Definition at line 33 of file ClearCacheToolbarItem.php.

$iconFactory
protected

Definition at line 43 of file ClearCacheToolbarItem.php.

$optionValues = array()
protected

Definition at line 38 of file ClearCacheToolbarItem.php.