19 declare(strict_types=1);
27 abstract class Column implements C\Column
39 protected \ilLanguage
$lng;
56 $class = explode(
'\\', static::class);
57 return array_pop($class);
64 $clone->sortable = $flag;
74 string $asc_label = null,
75 string $desc_label = null
78 $clone->asc_label = $asc_label;
79 $clone->desc_label = $desc_label;
89 $this->asc_label ?? $this->
getTitle() . self::SEPERATOR . $this->
lng->txt(
'order_option_generic_ascending'),
90 $this->desc_label ?? $this->
getTitle() . self::SEPERATOR . $this->
lng->txt(
'order_option_generic_descending')
94 public function withIsOptional(
bool $is_optional,
bool $is_initially_visible =
true): self
97 $clone->optional = $is_optional;
98 $clone->initially_visible = $is_initially_visible;
114 $clone = clone $this;
126 $clone = clone $this;
127 $clone->highlighted = $flag;
141 return (
string) $value;
__construct(\ilLanguage $lng, string $title)
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...
withIsSortable(bool $flag)
withHighlight(bool $flag)
withOrderingLabels(string $asc_label=null, string $desc_label=null)