‪TYPO3CMS  ‪main
AbstractButton.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
25 {
31  protected ‪$icon;
32 
38  protected ‪$showLabelText = false;
39 
45  protected ‪$disabled = false;
46 
52  public function ‪getShowLabelText()
53  {
55  }
56 
64  public function ‪setShowLabelText(‪$showLabelText)
65  {
66  $this->showLabelText = ‪$showLabelText;
67  return $this;
68  }
69 
75  public function ‪getIcon()
76  {
77  return ‪$this->icon;
78  }
79 
85  public function ‪getType()
86  {
87  return static::class;
88  }
89 
97  public function ‪setIcon(‪Icon ‪$icon)
98  {
99  $this->icon = ‪$icon;
100  return $this;
101  }
102 
106  public function ‪isDisabled(): bool
107  {
108  return ‪$this->disabled;
109  }
110 
114  public function ‪setDisabled(bool ‪$disabled): ‪AbstractButton
115  {
116  $this->disabled = ‪$disabled;
117  return $this;
118  }
119 
126  public function ‪isValid()
127  {
128  return false;
129  }
130 
135  public function ‪__toString(): string
136  {
137  return '';
138  }
139 
146  public function ‪render()
147  {
148  return '';
149  }
150 }
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\getType
‪string getType()
Definition: AbstractButton.php:82
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$icon
‪Icon $icon
Definition: AbstractButton.php:30
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\setIcon
‪$this setIcon(Icon $icon)
Definition: AbstractButton.php:94
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\getIcon
‪Icon getIcon()
Definition: AbstractButton.php:72
‪TYPO3\CMS\Core\Imaging\Icon
Definition: Icon.php:27
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\getShowLabelText
‪bool getShowLabelText()
Definition: AbstractButton.php:49
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$disabled
‪bool $disabled
Definition: AbstractButton.php:42
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton
Definition: AbstractButton.php:25
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\setDisabled
‪setDisabled(bool $disabled)
Definition: AbstractButton.php:111
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\isValid
‪bool isValid()
Definition: AbstractButton.php:123
‪TYPO3\CMS\Backend\Template\Components\Buttons
Definition: AbstractButton.php:16
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\isDisabled
‪isDisabled()
Definition: AbstractButton.php:103
‪TYPO3\CMS\Backend\Template\Components\AbstractControl
Definition: AbstractControl.php:22
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\__toString
‪__toString()
Definition: AbstractButton.php:132
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$showLabelText
‪bool $showLabelText
Definition: AbstractButton.php:36
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\render
‪string render()
Definition: AbstractButton.php:143
‪TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface
Definition: ButtonInterface.php:22
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\setShowLabelText
‪$this setShowLabelText($showLabelText)
Definition: AbstractButton.php:61