19 declare(strict_types=1);
27 abstract class Column implements C\Column
43 protected string $title
54 $class = explode(
'\\', $this::class);
55 return array_pop($class);
62 $clone->sortable = $flag;
72 string $asc_label = null,
73 string $desc_label = null
87 $this->asc_label ?? $this->
getTitle() . self::SEPERATOR . $this->
lng->txt(
'order_option_generic_ascending'),
88 $this->desc_label ?? $this->
getTitle() . self::SEPERATOR . $this->
lng->txt(
'order_option_generic_descending')
92 public function withIsOptional(
bool $is_optional,
bool $is_initially_visible =
true): self
95 $clone->optional = $is_optional;
96 $clone->initially_visible = $is_initially_visible;
112 $clone = clone $this;
124 $clone = clone $this;
125 $clone->highlighted = $flag;
136 return (
string) $value;
withIsOptional(bool $is_optional, bool $is_initially_visible=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(protected \ilLanguage $lng, protected string $title)
withIsSortable(bool $flag)
withHighlight(bool $flag)
withOrderingLabels(string $asc_label=null, string $desc_label=null)