‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Schema\Struct\SelectItem Class Reference
Inheritance diagram for TYPO3\CMS\Core\Schema\Struct\SelectItem:

Public Member Functions

 __construct (private string $type, private string $label, private int|string|null $value, private ?string $icon=null, private ?string $group=null, private string|array|null $description=null, private bool $invertStateDisplay=false, private ?string $iconIdentifierChecked=null, private ?string $iconIdentifierUnchecked=null, private ?string $labelChecked=null, private ?string $labelUnchecked=null,)
 
 toArray ()
 
 getLabel ()
 
 withLabel (string $label)
 
 getValue ()
 
 withValue (int|string|null $value)
 
 getIcon ()
 
 hasIcon ()
 
 withIcon (?string $icon)
 
 getGroup ()
 
 hasGroup ()
 
 withGroup (?string $group)
 
 getDescription ()
 
 hasDescription ()
 
 withDescription (string|array|null $description)
 
 invertStateDisplay ()
 
 getIconIdentifierChecked ()
 
 hasIconIdentifierChecked ()
 
 getIconIdentifierUnchecked ()
 
 hasIconIdentifierUnchecked ()
 
 getLabelChecked ()
 
 hasLabelChecked ()
 
 getLabelUnchecked ()
 
 hasLabelUnchecked ()
 
 isDivider ()
 
 offsetExists (mixed $offset)
 
 offsetGet (mixed $offset)
 
 offsetSet (mixed $offset, mixed $value)
 
 offsetUnset (mixed $offset)
 

Static Public Member Functions

static fromTcaItemArray (array $item, string $type='select')
 

Private Attributes

array $container = []
 
const LEGACY_INDEXED_KEYS_MAPPING_TABLE
 

Detailed Description

Definition at line 20 of file SelectItem.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Schema\Struct\SelectItem::__construct ( private string  $type,
private string  $label,
private int|string|null  $value,
private ?string  $icon = null,
private ?string  $group = null,
private string|array|null  $description = null,
private bool  $invertStateDisplay = false,
private ?string  $iconIdentifierChecked = null,
private ?string  $iconIdentifierUnchecked = null,
private ?string  $labelChecked = null,
private ?string  $labelUnchecked = null 
)

Definition at line 31 of file SelectItem.php.

Member Function Documentation

◆ fromTcaItemArray()

◆ getDescription()

TYPO3\CMS\Core\Schema\Struct\SelectItem::getDescription ( )

Definition at line 150 of file SelectItem.php.

◆ getGroup()

TYPO3\CMS\Core\Schema\Struct\SelectItem::getGroup ( )

Definition at line 133 of file SelectItem.php.

◆ getIcon()

TYPO3\CMS\Core\Schema\Struct\SelectItem::getIcon ( )

Definition at line 116 of file SelectItem.php.

◆ getIconIdentifierChecked()

TYPO3\CMS\Core\Schema\Struct\SelectItem::getIconIdentifierChecked ( )

Definition at line 172 of file SelectItem.php.

◆ getIconIdentifierUnchecked()

TYPO3\CMS\Core\Schema\Struct\SelectItem::getIconIdentifierUnchecked ( )

Definition at line 182 of file SelectItem.php.

◆ getLabel()

TYPO3\CMS\Core\Schema\Struct\SelectItem::getLabel ( )

◆ getLabelChecked()

TYPO3\CMS\Core\Schema\Struct\SelectItem::getLabelChecked ( )

Definition at line 192 of file SelectItem.php.

◆ getLabelUnchecked()

TYPO3\CMS\Core\Schema\Struct\SelectItem::getLabelUnchecked ( )

Definition at line 202 of file SelectItem.php.

◆ getValue()

◆ hasDescription()

TYPO3\CMS\Core\Schema\Struct\SelectItem::hasDescription ( )

Definition at line 155 of file SelectItem.php.

References TYPO3\CMS\Redirects\Message\description.

◆ hasGroup()

TYPO3\CMS\Core\Schema\Struct\SelectItem::hasGroup ( )

Definition at line 138 of file SelectItem.php.

◆ hasIcon()

TYPO3\CMS\Core\Schema\Struct\SelectItem::hasIcon ( )

Definition at line 121 of file SelectItem.php.

◆ hasIconIdentifierChecked()

TYPO3\CMS\Core\Schema\Struct\SelectItem::hasIconIdentifierChecked ( )

Definition at line 177 of file SelectItem.php.

◆ hasIconIdentifierUnchecked()

TYPO3\CMS\Core\Schema\Struct\SelectItem::hasIconIdentifierUnchecked ( )

Definition at line 187 of file SelectItem.php.

◆ hasLabelChecked()

TYPO3\CMS\Core\Schema\Struct\SelectItem::hasLabelChecked ( )

Definition at line 197 of file SelectItem.php.

◆ hasLabelUnchecked()

TYPO3\CMS\Core\Schema\Struct\SelectItem::hasLabelUnchecked ( )

Definition at line 207 of file SelectItem.php.

◆ invertStateDisplay()

TYPO3\CMS\Core\Schema\Struct\SelectItem::invertStateDisplay ( )

◆ isDivider()

TYPO3\CMS\Core\Schema\Struct\SelectItem::isDivider ( )

◆ offsetExists()

TYPO3\CMS\Core\Schema\Struct\SelectItem::offsetExists ( mixed  $offset)

Definition at line 217 of file SelectItem.php.

References TYPO3\CMS\Core\Schema\Struct\SelectItem\toArray().

◆ offsetGet()

TYPO3\CMS\Core\Schema\Struct\SelectItem::offsetGet ( mixed  $offset)

Definition at line 228 of file SelectItem.php.

References TYPO3\CMS\Core\Schema\Struct\SelectItem\toArray().

◆ offsetSet()

TYPO3\CMS\Core\Schema\Struct\SelectItem::offsetSet ( mixed  $offset,
mixed  $value 
)

Definition at line 239 of file SelectItem.php.

◆ offsetUnset()

TYPO3\CMS\Core\Schema\Struct\SelectItem::offsetUnset ( mixed  $offset)

Definition at line 251 of file SelectItem.php.

◆ toArray()

◆ withDescription()

TYPO3\CMS\Core\Schema\Struct\SelectItem::withDescription ( string|array|null  $description)

Definition at line 160 of file SelectItem.php.

◆ withGroup()

TYPO3\CMS\Core\Schema\Struct\SelectItem::withGroup ( ?string  $group)

Definition at line 143 of file SelectItem.php.

◆ withIcon()

TYPO3\CMS\Core\Schema\Struct\SelectItem::withIcon ( ?string  $icon)

◆ withLabel()

TYPO3\CMS\Core\Schema\Struct\SelectItem::withLabel ( string  $label)

Definition at line 97 of file SelectItem.php.

◆ withValue()

TYPO3\CMS\Core\Schema\Struct\SelectItem::withValue ( int|string|null  $value)

Definition at line 109 of file SelectItem.php.

Member Data Documentation

◆ $container

array TYPO3\CMS\Core\Schema\Struct\SelectItem::$container = []
private

Definition at line 22 of file SelectItem.php.

◆ LEGACY_INDEXED_KEYS_MAPPING_TABLE

const TYPO3\CMS\Core\Schema\Struct\SelectItem::LEGACY_INDEXED_KEYS_MAPPING_TABLE
private
Initial value:
= [
0 => 'label',
1 => 'value',
2 => 'icon',
3 => 'group',
4 => 'description',
]

Definition at line 23 of file SelectItem.php.