![]() |
TYPO3
7.6
|
Public Member Functions | |
checkAccess () | |
getItem () | |
hasDropDown () | |
getDropDown () | |
getAdditionalAttributes () | |
getIndex () | |
Interface for classes which extend the backend by adding items to the top toolbar
: This interface is FIRST DRAFT and still WILL CHANGE
Definition at line 23 of file ToolbarItemInterface.php.
checkAccess | ( | ) |
Checks whether the user has access to this toolbar item : Split into two methods a permission method and a "hasContent" or similar
Implemented in SystemInformationToolbarItem, ActionToolbarItem, ClearCacheToolbarItem, ShortcutToolbarItem, OpendocsToolbarItem, HelpToolbarItem, WorkspaceSelectorToolbarItem, and UserToolbarItem.
getAdditionalAttributes | ( | ) |
Returns an array with additional attributes added to containing tag of the item.
Typical usages are additional css classes and data-* attributes, classes may be merged with other classes needed by the framework. Do NOT set an id attribute here.
array( 'class' => 'my-class', 'data-foo' => '42', )
Implemented in SystemInformationToolbarItem, ShortcutToolbarItem, OpendocsToolbarItem, ClearCacheToolbarItem, UserToolbarItem, WorkspaceSelectorToolbarItem, ActionToolbarItem, HelpToolbarItem, and LiveSearchToolbarItem.
getDropDown | ( | ) |
Render "drop down" part of this toolbar
Implemented in SystemInformationToolbarItem, ClearCacheToolbarItem, ShortcutToolbarItem, OpendocsToolbarItem, LiveSearchToolbarItem, WorkspaceSelectorToolbarItem, and ActionToolbarItem.
getIndex | ( | ) |
Returns an integer between 0 and 100 to determine the position of this item relative to others
By default, extensions should return 50 to be sorted between main core items and other items that should be on the very right.
Implemented in ShortcutToolbarItem, SystemInformationToolbarItem, OpendocsToolbarItem, ClearCacheToolbarItem, UserToolbarItem, ActionToolbarItem, WorkspaceSelectorToolbarItem, HelpToolbarItem, and LiveSearchToolbarItem.
getItem | ( | ) |
Render "item" part of this toolbar
Implemented in SystemInformationToolbarItem, ClearCacheToolbarItem, ShortcutToolbarItem, OpendocsToolbarItem, HelpToolbarItem, WorkspaceSelectorToolbarItem, LiveSearchToolbarItem, and ActionToolbarItem.
hasDropDown | ( | ) |
TRUE if this toolbar item has a collapsible drop down
Implemented in SystemInformationToolbarItem, ShortcutToolbarItem, OpendocsToolbarItem, ClearCacheToolbarItem, UserToolbarItem, WorkspaceSelectorToolbarItem, ActionToolbarItem, HelpToolbarItem, and LiveSearchToolbarItem.