‪TYPO3CMS  9.5
AbstractButton.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
19 
24 {
30  protected ‪$icon;
31 
37  protected ‪$showLabelText = false;
38 
44  protected ‪$disabled = false;
45 
51  public function ‪getShowLabelText()
52  {
54  }
55 
63  public function ‪setShowLabelText(‪$showLabelText)
64  {
65  $this->showLabelText = ‪$showLabelText;
66  return $this;
67  }
68 
74  public function ‪getIcon()
75  {
76  return ‪$this->icon;
77  }
78 
84  public function ‪getType()
85  {
86  return static::class;
87  }
88 
96  public function ‪setIcon(‪Icon ‪$icon)
97  {
98  $this->icon = ‪$icon;
99  return $this;
100  }
101 
107  public function ‪isDisabled(): bool
108  {
109  return ‪$this->disabled;
110  }
111 
118  public function ‪setDisabled(bool ‪$disabled): ‪AbstractButton
119  {
120  $this->disabled = ‪$disabled;
121  return $this;
122  }
123 
130  public function ‪isValid()
131  {
132  return false;
133  }
134 
141  public function ‪__toString()
142  {
143  return '';
144  }
145 
152  public function ‪render()
153  {
154  return '';
155  }
156 }
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\getType
‪string getType()
Definition: AbstractButton.php:81
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$icon
‪Icon $icon
Definition: AbstractButton.php:29
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\setIcon
‪$this setIcon(Icon $icon)
Definition: AbstractButton.php:93
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\getIcon
‪Icon getIcon()
Definition: AbstractButton.php:71
‪TYPO3\CMS\Core\Imaging\Icon
Definition: Icon.php:25
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\getShowLabelText
‪bool getShowLabelText()
Definition: AbstractButton.php:48
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$disabled
‪bool $disabled
Definition: AbstractButton.php:41
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton
Definition: AbstractButton.php:24
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\isValid
‪bool isValid()
Definition: AbstractButton.php:127
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\isDisabled
‪bool isDisabled()
Definition: AbstractButton.php:104
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\setDisabled
‪AbstractButton setDisabled(bool $disabled)
Definition: AbstractButton.php:115
‪TYPO3\CMS\Backend\Template\Components\Buttons
Definition: AbstractButton.php:2
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\__toString
‪string __toString()
Definition: AbstractButton.php:138
‪TYPO3\CMS\Backend\Template\Components\AbstractControl
Definition: AbstractControl.php:21
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\$showLabelText
‪bool $showLabelText
Definition: AbstractButton.php:35
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\render
‪string render()
Definition: AbstractButton.php:149
‪TYPO3\CMS\Backend\Template\Components\Buttons\ButtonInterface
Definition: ButtonInterface.php:21
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\setShowLabelText
‪$this setShowLabelText($showLabelText)
Definition: AbstractButton.php:60