SelectItem implements ArrayAccess
FinalYes
Table of Contents
Interfaces
- ArrayAccess
Methods
- __construct() : mixed
- fromTcaItemArray() : SelectItem
- getDescription() : string|array<string|int, mixed>|null
- getGroup() : string|null
- getIcon() : string|null
- getIconIdentifierChecked() : string|null
- getIconIdentifierUnchecked() : string|null
- getLabel() : string
- getLabelChecked() : string|null
- getLabelUnchecked() : string|null
- getValue() : int|string|null
- hasDescription() : bool
- hasGroup() : bool
- hasIcon() : bool
- hasIconIdentifierChecked() : bool
- hasIconIdentifierUnchecked() : bool
- hasLabelChecked() : bool
- hasLabelUnchecked() : bool
- invertStateDisplay() : bool
- isDivider() : bool
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- toArray() : array<string|int, mixed>
- withDescription() : SelectItem
- withGroup() : SelectItem
- withIcon() : SelectItem
- withLabel() : SelectItem
- withValue() : SelectItem
Methods
__construct()
public
__construct(string $type, string $label, int|string|null $value[, string|null $icon = null ][, string|null $group = null ][, string|array<string|int, mixed>|null $description = null ][, bool $invertStateDisplay = false ][, string|null $iconIdentifierChecked = null ][, string|null $iconIdentifierUnchecked = null ][, string|null $labelChecked = null ][, string|null $labelUnchecked = null ]) : mixed
Parameters
- $type : string
- $label : string
- $value : int|string|null
- $icon : string|null = null
- $group : string|null = null
- $description : string|array<string|int, mixed>|null = null
- $invertStateDisplay : bool = false
- $iconIdentifierChecked : string|null = null
- $iconIdentifierUnchecked : string|null = null
- $labelChecked : string|null = null
- $labelUnchecked : string|null = null
fromTcaItemArray()
public
static fromTcaItemArray(array<string|int, mixed> $item[, string $type = 'select' ]) : SelectItem
Parameters
- $item : array<string|int, mixed>
- $type : string = 'select'
Return values
SelectItemgetDescription()
public
getDescription() : string|array<string|int, mixed>|null
Return values
string|array<string|int, mixed>|nullgetGroup()
public
getGroup() : string|null
Return values
string|nullgetIcon()
public
getIcon() : string|null
Return values
string|nullgetIconIdentifierChecked()
public
getIconIdentifierChecked() : string|null
Return values
string|nullgetIconIdentifierUnchecked()
public
getIconIdentifierUnchecked() : string|null
Return values
string|nullgetLabel()
public
getLabel() : string
Return values
stringgetLabelChecked()
public
getLabelChecked() : string|null
Return values
string|nullgetLabelUnchecked()
public
getLabelUnchecked() : string|null
Return values
string|nullgetValue()
public
getValue() : int|string|null
Return values
int|string|nullhasDescription()
public
hasDescription() : bool
Return values
boolhasGroup()
public
hasGroup() : bool
Return values
boolhasIcon()
public
hasIcon() : bool
Return values
boolhasIconIdentifierChecked()
public
hasIconIdentifierChecked() : bool
Return values
boolhasIconIdentifierUnchecked()
public
hasIconIdentifierUnchecked() : bool
Return values
boolhasLabelChecked()
public
hasLabelChecked() : bool
Return values
boolhasLabelUnchecked()
public
hasLabelUnchecked() : bool
Return values
boolinvertStateDisplay()
public
invertStateDisplay() : bool
Return values
boolisDivider()
public
isDivider() : bool
Return values
booloffsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>withDescription()
public
withDescription(string|array<string|int, mixed>|null $description) : SelectItem
Parameters
- $description : string|array<string|int, mixed>|null
Return values
SelectItemwithGroup()
public
withGroup(string|null $group) : SelectItem
Parameters
- $group : string|null
Return values
SelectItemwithIcon()
public
withIcon(string|null $icon) : SelectItem
Parameters
- $icon : string|null
Return values
SelectItemwithLabel()
public
withLabel(string $label) : SelectItem
Parameters
- $label : string
Return values
SelectItemwithValue()
public
withValue(int|string|null $value) : SelectItem
Parameters
- $value : int|string|null