‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Template\Components\AbstractControl Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Template\Components\AbstractControl:
TYPO3\CMS\Backend\Template\Components\Buttons\AbstractButton TYPO3\CMS\Backend\Template\Components\Menu\MenuItem TYPO3\CMS\Backend\Template\Components\Buttons\InputButton TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton TYPO3\CMS\Backend\Template\Components\Buttons\SplitButton

Public Member Functions

string getClasses ()
 
string getTitle ()
 
array getDataAttributes ()
 
bool hasOnClick ()
 
string getOnClick ()
 
$this setClasses ($classes)
 
$this setTitle ($title)
 
$this setDataAttributes (array $dataAttributes)
 
$this setOnClick ($onClick)
 

Protected Attributes

string $classes = ''
 
string $title = ''
 
array $dataAttributes = array( )
 
string $onClick = ''
 

Detailed Description

Control used by various components

Definition at line 21 of file AbstractControl.php.

Member Function Documentation

◆ getClasses()

string TYPO3\CMS\Backend\Template\Components\AbstractControl::getClasses ( )

◆ getDataAttributes()

array TYPO3\CMS\Backend\Template\Components\AbstractControl::getDataAttributes ( )

Get Data attributes

Returns
‪array

Definition at line 75 of file AbstractControl.php.

References TYPO3\CMS\Backend\Template\Components\AbstractControl\$dataAttributes.

◆ getOnClick()

string TYPO3\CMS\Backend\Template\Components\AbstractControl::getOnClick ( )

Get Onclick Attribute

Returns
‪string
Deprecated:
‪Use HTML data attrs for GlobalEventHandler or ActionDispatcher instead. Will be removed in TYPO3 v12.0

Definition at line 99 of file AbstractControl.php.

References TYPO3\CMS\Backend\Template\Components\AbstractControl\$onClick.

Referenced by TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton\render(), and TYPO3\CMS\Backend\Template\Components\Buttons\SplitButton\render().

◆ getTitle()

◆ hasOnClick()

bool TYPO3\CMS\Backend\Template\Components\AbstractControl::hasOnClick ( )

Helper method to avoid using getOnClick in TYPO3 core.

Returns
‪bool
Deprecated:
‪Introduced with TYPO3 v11.5, will be removed with TYPO3 v12.0

Basically just to be used by the TYPO3 core, not to be used in extensions.

Definition at line 87 of file AbstractControl.php.

Referenced by TYPO3\CMS\Backend\Template\Components\Buttons\LinkButton\render().

◆ setClasses()

$this TYPO3\CMS\Backend\Template\Components\AbstractControl::setClasses (   $classes)

◆ setDataAttributes()

$this TYPO3\CMS\Backend\Template\Components\AbstractControl::setDataAttributes ( array  $dataAttributes)

Set Data attributes

Parameters
array$dataAttributes‪HTML data attributes to set
Returns
‪$this

Definition at line 141 of file AbstractControl.php.

References TYPO3\CMS\Backend\Template\Components\AbstractControl\$dataAttributes.

Referenced by TYPO3\CMS\Form\Controller\FormManagerController\initializeModuleTemplate().

◆ setOnClick()

$this TYPO3\CMS\Backend\Template\Components\AbstractControl::setOnClick (   $onClick)

Set OnClick

Parameters
string$onClick‪HTML onClick attribute to set
Returns
‪$this
Deprecated:
‪Use HTML data attrs for GlobalEventHandler or ActionDispatcher instead. Will be removed in TYPO3 v12.0

Definition at line 155 of file AbstractControl.php.

References TYPO3\CMS\Backend\Template\Components\AbstractControl\$onClick.

◆ setTitle()

Member Data Documentation

◆ $classes

string TYPO3\CMS\Backend\Template\Components\AbstractControl::$classes = ''
protected

◆ $dataAttributes

array TYPO3\CMS\Backend\Template\Components\AbstractControl::$dataAttributes = array( )
protected

◆ $onClick

string TYPO3\CMS\Backend\Template\Components\AbstractControl::$onClick = ''
protected

HTML tag attribute onClick Outdated, use sparingly

Deprecated:
‪Use HTML data attrs for GlobalEventHandler or ActionDispatcher instead. Will be removed in TYPO3 v12.0

Definition at line 48 of file AbstractControl.php.

Referenced by TYPO3\CMS\Backend\Template\Components\AbstractControl\getOnClick(), and TYPO3\CMS\Backend\Template\Components\AbstractControl\setOnClick().

◆ $title