‪TYPO3CMS  11.5
TYPO3\CMS\SysNote\Hook\ButtonBarHook Class Reference

Public Member Functions

array getButtons (array $params, ButtonBar $buttonBar)
 

Protected Member Functions

bool canCreateNewRecord (int $id)
 
bool isCreationAllowed (array $modTSconfig)
 
 getRequest ()
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 

Private Attributes

const TABLE_NAME = 'sys_note'
 
const ALLOWED_MODULES = ['web_layout', 'web_list', 'web_info']
 

Detailed Description

Hook for the button bar

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

Definition at line 37 of file ButtonBarHook.php.

Member Function Documentation

◆ canCreateNewRecord()

bool TYPO3\CMS\SysNote\Hook\ButtonBarHook::canCreateNewRecord ( int  $id)
protected

◆ getBackendUserAuthentication()

TYPO3\CMS\SysNote\Hook\ButtonBarHook::getBackendUserAuthentication ( )
protected

Definition at line 138 of file ButtonBarHook.php.

References $GLOBALS.

Referenced by TYPO3\CMS\SysNote\Hook\ButtonBarHook\canCreateNewRecord().

◆ getButtons()

array TYPO3\CMS\SysNote\Hook\ButtonBarHook::getButtons ( array  $params,
ButtonBar  $buttonBar 
)

◆ getLanguageService()

TYPO3\CMS\SysNote\Hook\ButtonBarHook::getLanguageService ( )
protected

Definition at line 143 of file ButtonBarHook.php.

References $GLOBALS.

Referenced by TYPO3\CMS\SysNote\Hook\ButtonBarHook\getButtons().

◆ getRequest()

TYPO3\CMS\SysNote\Hook\ButtonBarHook::getRequest ( )
protected

Definition at line 133 of file ButtonBarHook.php.

References $GLOBALS.

Referenced by TYPO3\CMS\SysNote\Hook\ButtonBarHook\getButtons().

◆ isCreationAllowed()

bool TYPO3\CMS\SysNote\Hook\ButtonBarHook::isCreationAllowed ( array  $modTSconfig)
protected

Check if creation is allowed / denied in web_list via mod TSconfig

Parameters
array$modTSconfig
Returns
‪bool

Definition at line 123 of file ButtonBarHook.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Member Data Documentation

◆ ALLOWED_MODULES

const TYPO3\CMS\SysNote\Hook\ButtonBarHook::ALLOWED_MODULES = ['web_layout', 'web_list', 'web_info']
private

Definition at line 40 of file ButtonBarHook.php.

◆ TABLE_NAME

const TYPO3\CMS\SysNote\Hook\ButtonBarHook::TABLE_NAME = 'sys_note'
private