‪TYPO3CMS  10.4
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 
108  public function ‪isDisabled(): bool
109  {
110  return ‪$this->disabled;
111  }
112 
119  public function ‪setDisabled(bool ‪$disabled): ‪AbstractButton
120  {
121  $this->disabled = ‪$disabled;
122  return $this;
123  }
124 
131  public function ‪isValid()
132  {
133  return false;
134  }
135 
142  public function ‪__toString()
143  {
144  return '';
145  }
146 
153  public function ‪render()
154  {
155  return '';
156  }
157 }
‪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:26
‪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\isValid
‪bool isValid()
Definition: AbstractButton.php:128
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\isDisabled
‪bool isDisabled()
Definition: AbstractButton.php:105
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\setDisabled
‪AbstractButton setDisabled(bool $disabled)
Definition: AbstractButton.php:116
‪TYPO3\CMS\Backend\Template\Components\Buttons
Definition: AbstractButton.php:16
‪TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton\__toString
‪string __toString()
Definition: AbstractButton.php:139
‪TYPO3\CMS\Backend\Template\Components\AbstractControl
Definition: AbstractControl.php:22
‪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:150
‪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