TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton:
TYPO3\CMS\Backend\Template\Components\AbstractControl TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface TYPO3\CMS\Backend\Template\Components\Buttons\InputButton TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton TYPO3\CMS\Backend\Template\Components\Buttons\SplitButton

Public Member Functions

 getShowLabelText ()
 
 setShowLabelText ($showLabelText)
 
 getIcon ()
 
 getType ()
 
 setIcon (Icon $icon)
 
 isValid ()
 
 __toString ()
 
 render ()
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Template\Components\AbstractControl
 getClasses ()
 
 getTitle ()
 
 getDataAttributes ()
 
 getOnClick ()
 
 setClasses ($classes)
 
 setTitle ($title)
 
 setDataAttributes (array $dataAttributes)
 
 setOnClick ($onClick)
 

Protected Attributes

 $icon
 
 $type
 
 $showLabelText = false
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Template\Components\AbstractControl
 $classes = ''
 
 $title = ''
 
 $dataAttributes = []
 
 $onClick = ''
 

Detailed Description

AbstractButton

Definition at line 23 of file AbstractButton.php.

Member Function Documentation

◆ __toString()

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::__toString ( )

Implementation from ButtonInterface This object is an abstract, so no implementation is necessary

Returns
string

Implements TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface.

Definition at line 119 of file AbstractButton.php.

◆ getIcon()

◆ getShowLabelText()

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::getShowLabelText ( )

Show Label text

Returns
bool

Definition at line 51 of file AbstractButton.php.

References TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$showLabelText.

◆ getType()

◆ isValid()

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::isValid ( )

Implementation from ButtonInterface This object is an abstract, so no implementation is necessary

Returns
bool

Implements TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface.

Definition at line 108 of file AbstractButton.php.

Referenced by TYPO3\CMS\Backend\Template\Components\Buttons\SplitButton\addItem().

◆ render()

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::render ( )

Implementation from ButtonInterface This object is an abstract, so no implementation is necessary

Returns
string

Implements TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface.

Definition at line 130 of file AbstractButton.php.

Referenced by TYPO3\CMS\Backend\Template\Components\Buttons\SplitButton\__toString(), and TYPO3\CMS\Backend\Template\Components\Buttons\SplitButton\isValid().

◆ setIcon()

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::setIcon ( Icon  $icon)

Set icon

Parameters
Icon$iconIcon object for the button
Returns
$this

Definition at line 96 of file AbstractButton.php.

References TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$icon.

◆ setShowLabelText()

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::setShowLabelText (   $showLabelText)

Show Label text

Parameters
bool$showLabelText
Returns
$this

Definition at line 63 of file AbstractButton.php.

References TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$showLabelText.

Member Data Documentation

◆ $icon

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::$icon
protected

◆ $showLabelText

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::$showLabelText = false
protected

◆ $type

TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton::$type
protected

Definition at line 37 of file AbstractButton.php.