19declare(strict_types=1);
35 private UIFactory $ui_factory,
52 if ($record->start_object !==
'') {
55 if ($record->end_object !==
'') {
58 if ($record->end_object ===
'' && !$record->has_structural_successor) {
61 if ($record->has_conflicting_input_configuration) {
64 if ($record->start_object ===
'' && !$record->has_structural_predecessor) {
77 if (!$record->has_conflicting_input_configuration) {
80 if ($record->static_input_configuration_issue_details === []) {
81 return $this->
lng->txt(
'lso_adaptive_misconfigured_info');
84 $listing = $this->ui_factory->listing()->property();
85 foreach ($record->static_input_configuration_issue_details as $detail) {
86 $title = $this->
lng->txt($detail->title_language_var);
88 $listing = $listing->withProperty(
90 $description ===
'' ? $title : $title .
' ' . $description,
98 private function buildTag(
string $language_var,
string $relevance):
Tag
100 return $this->ui_factory->button()
101 ->tag($this->
lng->txt($language_var),
'')
108 if ($detail->description_language_var !==
null) {
109 $parts[] = $this->
lng->txt($detail->description_language_var);
111 foreach ($detail->properties_by_language_var as $language_var => $value) {
114 $this->
lng->txt($language_var),
119 return implode(
' ', $parts);
128 fn(
int|
string $value):
string => is_int($value) ? $this->
lookupTitle($value) : $value,
133 return implode(
', ', $items);
Builds a Color from either hex- or rgb values.
Describes the status of an item in the adaptive content table: the tags shown below its title and the...
buildTag(string $language_var, string $relevance)
buildIssueDescription(StaticInputConfigurationIssueDetail $detail)
getTags(\ilObjLearningSequenceContentData $record)
The status tags of the item.
buildPropertyList(array $values)
__construct(private UIFactory $ui_factory, private \ilLanguage $lng)
getConfigurationIssues(\ilObjLearningSequenceContentData $record)
The configuration issues of a misconfigured item, or null if its configuration is fine.
Data transfer object for an item in the learning sequence content table.
static _lookupObjId(int $ref_id)