‪TYPO3CMS  10.4
AbstractControl.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 
22 {
28  protected ‪$classes = '';
29 
35  protected ‪$title = '';
36 
43  protected ‪$dataAttributes = [];
44 
51  protected ‪$onClick = '';
52 
58  public function ‪getClasses()
59  {
60  return ‪$this->classes;
61  }
62 
68  public function ‪getTitle()
69  {
70  return ‪$this->title;
71  }
72 
78  public function ‪getDataAttributes()
79  {
81  }
82 
88  public function ‪getOnClick()
89  {
90  return ‪$this->onClick;
91  }
92 
100  public function ‪setClasses(‪$classes)
101  {
102  $this->classes = ‪$classes;
103  return $this;
104  }
105 
113  public function ‪setTitle(‪$title)
114  {
115  $this->title = ‪$title;
116  return $this;
117  }
118 
126  public function ‪setDataAttributes(array ‪$dataAttributes)
127  {
128  $this->dataAttributes = ‪$dataAttributes;
129  return $this;
130  }
131 
139  public function ‪setOnClick(‪$onClick)
140  {
141  $this->onClick = ‪$onClick;
142  return $this;
143  }
144 }
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\setClasses
‪$this setClasses($classes)
Definition: AbstractControl.php:96
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\getDataAttributes
‪array getDataAttributes()
Definition: AbstractControl.php:74
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\$onClick
‪string $onClick
Definition: AbstractControl.php:47
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\getOnClick
‪string getOnClick()
Definition: AbstractControl.php:84
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\getClasses
‪string getClasses()
Definition: AbstractControl.php:54
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\$title
‪string $title
Definition: AbstractControl.php:33
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\getTitle
‪string getTitle()
Definition: AbstractControl.php:64
‪TYPO3\CMS\Backend\Template\Components\AbstractControl
Definition: AbstractControl.php:22
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\$classes
‪string $classes
Definition: AbstractControl.php:27
‪TYPO3\CMS\Backend\Template\Components
Definition: AbstractControl.php:16
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\$dataAttributes
‪array $dataAttributes
Definition: AbstractControl.php:40
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\setOnClick
‪$this setOnClick($onClick)
Definition: AbstractControl.php:135
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\setDataAttributes
‪$this setDataAttributes(array $dataAttributes)
Definition: AbstractControl.php:122
‪TYPO3\CMS\Backend\Template\Components\AbstractControl\setTitle
‪$this setTitle($title)
Definition: AbstractControl.php:109