‪TYPO3CMS  9.5
AbstractControl.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 
21 {
27  protected ‪$classes = '';
28 
34  protected ‪$title = '';
35 
42  protected ‪$dataAttributes = [];
43 
50  protected ‪$onClick = '';
51 
57  public function ‪getClasses()
58  {
59  return ‪$this->classes;
60  }
61 
67  public function ‪getTitle()
68  {
69  return ‪$this->title;
70  }
71 
77  public function ‪getDataAttributes()
78  {
80  }
81 
87  public function ‪getOnClick()
88  {
89  return ‪$this->onClick;
90  }
91 
99  public function ‪setClasses(‪$classes)
100  {
101  $this->classes = ‪$classes;
102  return $this;
103  }
104 
112  public function ‪setTitle(‪$title)
113  {
114  $this->title = ‪$title;
115  return $this;
116  }
117 
125  public function ‪setDataAttributes(array ‪$dataAttributes)
126  {
127  $this->dataAttributes = ‪$dataAttributes;
128  return $this;
129  }
130 
138  public function ‪setOnClick(‪$onClick)
139  {
140  $this->onClick = ‪$onClick;
141  return $this;
142  }
143 }
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\setClasses
‪$this setClasses($classes)
Definition: AbstractControl.php:95
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\getDataAttributes
‪array getDataAttributes()
Definition: AbstractControl.php:73
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\$onClick
‪string $onClick
Definition: AbstractControl.php:46
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\getOnClick
‪string getOnClick()
Definition: AbstractControl.php:83
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\getClasses
‪string getClasses()
Definition: AbstractControl.php:53
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\$title
‪string $title
Definition: AbstractControl.php:32
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\getTitle
‪string getTitle()
Definition: AbstractControl.php:63
‪TYPO3\CMS\Backend\Template\Components\AbstractControl
Definition: AbstractControl.php:21
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\$classes
‪string $classes
Definition: AbstractControl.php:26
‪TYPO3\CMS\Backend\Template\Components
Definition: AbstractControl.php:2
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\$dataAttributes
‪array $dataAttributes
Definition: AbstractControl.php:39
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\setOnClick
‪$this setOnClick($onClick)
Definition: AbstractControl.php:134
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\setDataAttributes
‪$this setDataAttributes(array $dataAttributes)
Definition: AbstractControl.php:121
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\setTitle
‪$this setTitle($title)
Definition: AbstractControl.php:108