Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/trunk' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay committed Oct 28, 2024
2 parents 0b3627d + a11603a commit 25888a2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 32 deletions.
28 changes: 0 additions & 28 deletions components/ILIAS/ILIASObject/classes/class.ilObjectListGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ class ilObjectListGUI
protected bool $search_fragments_enabled = false;
protected string $search_fragment = '';
protected bool $path_linked = false;
protected bool $enabled_relevance = false;
protected int $relevance = 0;
protected bool $expand_enabled = false;
protected bool $is_expanded = true;
Expand Down Expand Up @@ -331,16 +330,6 @@ public function enableLinkedPath(bool $status): void
$this->path_linked = $status;
}

public function enableRelevance(bool $status): void
{
$this->enabled_relevance = $status;
}

public function enabledRelevance(): bool
{
return $this->enabled_relevance;
}

public function setRelevance(int $rel): void
{
$this->relevance = $rel;
Expand Down Expand Up @@ -1195,20 +1184,6 @@ public function insertSearchFragment(): void
}
}

public function insertRelevance(): void
{
if (!$this->enabledRelevance() or !$this->getRelevance()) {
return;
}

$pbar = ilProgressBar::getInstance();
$pbar->setCurrent($this->getRelevance());

$this->tpl->setCurrentBlock('relevance');
$this->tpl->setVariable('REL_PBAR', $pbar->render());
$this->tpl->parseCurrentBlock();
}

/**
* set output mode
*
Expand Down Expand Up @@ -2812,9 +2787,6 @@ public function getListItemHTML(
if ($this->getSearchFragmentStatus()) {
$this->insertSearchFragment();
}
if ($this->enabledRelevance()) {
$this->insertRelevance();
}

// properties
if ($this->getPropertiesStatus()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public static function factory(string $a_type): ilObjectListGUI
$item_list_gui->enablePath(false);
$item_list_gui->enableLinkedPath(true);
$item_list_gui->enableSearchFragments(true);
$item_list_gui->enableRelevance(false);

return self::$item_list_gui[$a_type] = $item_list_gui;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ public static function factory(string $a_type): ?ilObjectListGUI
$item_list_gui->enablePath(false);
$item_list_gui->enableLinkedPath(false);
$item_list_gui->enableSearchFragments(false);
$item_list_gui->enableRelevance(false);
$item_list_gui->enableCheckbox(false);
return self::$item_list_gui[$a_type] = $item_list_gui;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ protected function fillRow(array $a_set): void
$item_list_gui->enablePath(false);
$item_list_gui->enableLinkedPath(false);
$item_list_gui->enableSearchFragments(true);
$item_list_gui->enableRelevance(false);
$item_list_gui->enableIcon(true);
$item_list_gui->enableTimings(false);
$item_list_gui->enableCheckbox($this->admin);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ protected function getItemHTML(array $node): string
$item_list_gui->enablePath(false);
$item_list_gui->enableLinkedPath(false);
$item_list_gui->enableSearchFragments(true);
$item_list_gui->enableRelevance(false);
$item_list_gui->enableIcon(true);
$item_list_gui->enableTimings(false);
$item_list_gui->enableCheckbox($this->admin);
Expand Down

0 comments on commit 25888a2

Please sign in to comment.