TYPO3
7.6
|
Public Member Functions | |
getModuleName () | |
setModuleName ($moduleName) | |
getDisplayName () | |
setDisplayName ($displayName) | |
getSetVariables () | |
setSetVariables (array $setVariables) | |
getGetVariables () | |
setGetVariables (array $getVariables) | |
getPosition () | |
getGroup () | |
getType () | |
isValid () | |
__toString () | |
Public Member Functions inherited from ButtonInterface | |
render () | |
Protected Member Functions | |
preProcess () | |
getBackendUser () | |
Protected Attributes | |
$moduleName | |
$displayName | |
$setVariables = array() | |
$getVariables = array() | |
$controllerContext | |
Renders a shortcut button in the DocHeader which will be rendered to the right position using button group "91".
EXAMPLE USAGE TO ADD A SHORTCUT BUTTON:
$buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar(); $myButton = $buttonBar->makeShortcutButton() ->setModuleName('my_info'); $extbaseButton = $buttonBar->makeShortcutButton() ->setControllerContext($this->controllerContext); $buttonBar->addButton($myButton); $buttonBar->addButton($extbaseButton);
Definition at line 41 of file ShortcutButton.php.
__toString | ( | ) |
Renders the button
Implements ButtonInterface.
Definition at line 207 of file ShortcutButton.php.
References ButtonInterface\render().
|
protected |
Definition at line 264 of file ShortcutButton.php.
References $GLOBALS.
getDisplayName | ( | ) |
Gets the display name of the module.
Definition at line 95 of file ShortcutButton.php.
References ShortcutButton\$displayName.
getGetVariables | ( | ) |
Gets the GET variables.
Definition at line 139 of file ShortcutButton.php.
References ShortcutButton\$getVariables.
getGroup | ( | ) |
Gets the button group.
Implements PositionInterface.
Definition at line 171 of file ShortcutButton.php.
getModuleName | ( | ) |
Gets the name of the module.
Definition at line 73 of file ShortcutButton.php.
References ShortcutButton\$moduleName.
getPosition | ( | ) |
Gets the button position.
Implements PositionInterface.
Definition at line 161 of file ShortcutButton.php.
References ButtonBar\BUTTON_POSITION_RIGHT.
getSetVariables | ( | ) |
Gets the SET variables.
Definition at line 117 of file ShortcutButton.php.
References ShortcutButton\$setVariables.
getType | ( | ) |
Gets the type of the button
Implements ButtonInterface.
Definition at line 181 of file ShortcutButton.php.
isValid | ( | ) |
Determines whether the button shall be rendered. Depends on the backend user permission to create shortcuts and the defined module name.
Implements ButtonInterface.
Definition at line 193 of file ShortcutButton.php.
References ShortcutButton\preProcess().
|
protected |
Pre-processes class member values.
Definition at line 239 of file ShortcutButton.php.
Referenced by ShortcutButton\isValid().
setDisplayName | ( | $displayName | ) |
Sets the display name of the module.
string | $displayName |
Definition at line 106 of file ShortcutButton.php.
References ShortcutButton\$displayName.
setGetVariables | ( | array | $getVariables | ) |
Sets the GET variables.
array | $getVariables |
Definition at line 150 of file ShortcutButton.php.
References ShortcutButton\$getVariables.
setModuleName | ( | $moduleName | ) |
Sets the name of the module.
string | $moduleName |
Definition at line 84 of file ShortcutButton.php.
References ShortcutButton\$moduleName.
setSetVariables | ( | array | $setVariables | ) |
Sets the SET variables.
array | $setVariables |
Definition at line 128 of file ShortcutButton.php.
References ShortcutButton\$setVariables.
|
protected |
Definition at line 66 of file ShortcutButton.php.
|
protected |
Definition at line 51 of file ShortcutButton.php.
Referenced by ShortcutButton\getDisplayName(), and ShortcutButton\setDisplayName().
|
protected |
Definition at line 61 of file ShortcutButton.php.
Referenced by ShortcutButton\getGetVariables(), and ShortcutButton\setGetVariables().
|
protected |
Definition at line 46 of file ShortcutButton.php.
Referenced by ShortcutButton\getModuleName(), and ShortcutButton\setModuleName().
|
protected |
Definition at line 56 of file ShortcutButton.php.
Referenced by ShortcutButton\getSetVariables(), and ShortcutButton\setSetVariables().