19declare(strict_types=1);
43 $this->checkBoolArg(
'value', $value);
44 return $value ? $this->true_option : $this->false_option;
52 $column_value_true = $this->
format(
true);
53 $column_value_false = $this->
format(
false);
54 if($column_value_true instanceof
Symbol) {
55 $column_value_true = $column_value_true->getLabel();
57 if($column_value_false instanceof
Symbol) {
58 $column_value_false = $column_value_false->getLabel();
61 $this->asc_label ?? $column_value_true .
' ' . $this->
lng->txt(
'order_option_first'),
62 $this->desc_label ?? $column_value_false .
' ' . $this->
lng->txt(
'order_option_first')
__construct(protected Language $lng, string $title, protected string|Icon|Glyph $true_option, protected string|Icon|Glyph $false_option)
A component is the most general form of an entity in the UI.
This describes how an icon could be modified during construction of UI.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc