TYPO3
7.6
|
Public Member Functions | |
addButton (ButtonInterface $button, $buttonPosition=self::BUTTON_POSITION_LEFT, $buttonGroup=1) | |
makeButton ($button) | |
makeInputButton () | |
makeSplitButton () | |
makeLinkButton () | |
makeFullyRenderedButton () | |
makeShortcutButton () | |
makeHelpButton () | |
getButtons () | |
Public Attributes | |
const | BUTTON_POSITION_LEFT = 'left' |
const | BUTTON_POSITION_RIGHT = 'right' |
Protected Attributes | |
$buttons = [] | |
Bar holding the buttons
Definition at line 30 of file ButtonBar.php.
addButton | ( | ButtonInterface | $button, |
$buttonPosition = self::BUTTON_POSITION_LEFT , |
|||
$buttonGroup = 1 |
|||
) |
Add button
ButtonInterface | $button | The Button Object to add |
string | $buttonPosition | Position of the button (left/right) |
int | $buttonGroup | Buttongroup of the button |
\InvalidArgumentException | In case a button is not valid |
Definition at line 60 of file ButtonBar.php.
References ButtonInterface\getType(), and ButtonInterface\isValid().
getButtons | ( | ) |
Returns an associative array of all buttons in the form of ButtonPosition > ButtonGroup > Button
Definition at line 162 of file ButtonBar.php.
References ButtonBar\$buttons, $GLOBALS, and GeneralUtility\callUserFunction().
makeButton | ( | $button | ) |
Creates a new button of the given type
string | $button | ButtonClass to invoke. Must implement ButtonInterface |
\InvalidArgumentException | In case a ButtonClass does not implement ButtonInterface |
Definition at line 88 of file ButtonBar.php.
References GeneralUtility\makeInstance().
makeFullyRenderedButton | ( | ) |
Creates a new FullyRenderedButton
Definition at line 131 of file ButtonBar.php.
References GeneralUtility\makeInstance().
makeHelpButton | ( | ) |
Creates a new HelpButton
Definition at line 151 of file ButtonBar.php.
References GeneralUtility\makeInstance().
makeInputButton | ( | ) |
Creates a new InputButton
Definition at line 101 of file ButtonBar.php.
References GeneralUtility\makeInstance().
makeLinkButton | ( | ) |
Creates a new LinkButton
Definition at line 121 of file ButtonBar.php.
References GeneralUtility\makeInstance().
makeShortcutButton | ( | ) |
Creates a new ShortcutButton
Definition at line 141 of file ButtonBar.php.
References GeneralUtility\makeInstance().
makeSplitButton | ( | ) |
Creates a new SplitButton
Definition at line 111 of file ButtonBar.php.
References GeneralUtility\makeInstance().
|
protected |
Definition at line 47 of file ButtonBar.php.
Referenced by ButtonBar\getButtons().
const BUTTON_POSITION_LEFT = 'left' |
Identifier for the left button bar
Definition at line 35 of file ButtonBar.php.
Referenced by ElementHistoryController\getButtons(), InfoModuleController\getButtons(), TableController\getButtons(), EditFileController\getButtons(), RteController\getButtons(), NewRecordController\getButtons(), TypoScriptTemplateModuleController\getButtons(), EditDocumentController\getButtons(), SchedulerModuleController\getButtons(), DatabaseRecordList\getDocHeaderButtons(), BackendLayoutWizardController\main(), PageLayoutController\makeButtons(), and LanguageController\prepareDocHeaderButtons().
const BUTTON_POSITION_RIGHT = 'right' |
Identifier for the right button bar
Definition at line 40 of file ButtonBar.php.
Referenced by InfoModuleController\getButtons(), TaskModuleController\getButtons(), SchedulerModuleController\getButtons(), DatabaseRecordList\getDocHeaderButtons(), HelpButton\getPosition(), ShortcutButton\getPosition(), DatabaseIntegrityView\main(), PageLayoutController\makeButtons(), EditDocumentController\openInNewWindowLink(), and ViewModuleController\registerButtons().