TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractButton Class Reference
Inheritance diagram for AbstractButton:
AbstractControl ButtonInterface InputButton LinkButton SplitButton

Public Member Functions

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

Protected Attributes

 $icon
 
 $type
 
 $showLabelText = false
 
- Protected Attributes inherited from AbstractControl
 $classes = ''
 
 $title = ''
 
 $dataAttributes = []
 
 $onClick = ''
 

Detailed Description

AbstractButton

Definition at line 23 of file AbstractButton.php.

Member Function Documentation

__toString ( )

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

Returns
string

Implements ButtonInterface.

Definition at line 119 of file AbstractButton.php.

getIcon ( )

Get icon

Returns
Icon

Definition at line 74 of file AbstractButton.php.

References AbstractButton\$icon.

Referenced by LinkButton\isValid(), InputButton\isValid(), LinkButton\render(), and InputButton\render().

getShowLabelText ( )

Show Label text

Returns
bool

Definition at line 51 of file AbstractButton.php.

References AbstractButton\$showLabelText.

getType ( )

Get type

Returns
string

Implements ButtonInterface.

Definition at line 84 of file AbstractButton.php.

Referenced by SplitButton\addItem(), LinkButton\isValid(), and InputButton\isValid().

isValid ( )

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

Returns
bool

Implements ButtonInterface.

Definition at line 108 of file AbstractButton.php.

Referenced by SplitButton\addItem().

render ( )

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

Returns
string

Implements ButtonInterface.

Definition at line 130 of file AbstractButton.php.

Referenced by SplitButton\__toString().

setIcon ( Icon  $icon)

Set icon

Parameters
Icon$iconIcon object for the button
Returns
$this

Definition at line 96 of file AbstractButton.php.

References AbstractButton\$icon.

setShowLabelText (   $showLabelText)

Show Label text

Parameters
bool$showLabelText
Returns
$this

Definition at line 63 of file AbstractButton.php.

References AbstractButton\$showLabelText.

Member Data Documentation

$icon
protected

Definition at line 30 of file AbstractButton.php.

Referenced by AbstractButton\getIcon(), and AbstractButton\setIcon().

$showLabelText = false
protected
$type
protected

Definition at line 37 of file AbstractButton.php.