3 declare(strict_types=1);
19 $this->items = $ls_items;
20 $this->ui_factory = $ui_factory;
22 $this->goto_command = $goto_command;
23 $this->url_builder = $url_builder;
29 foreach ($this->items as $item) {
32 $action = $this->query . $item->getRefId();
33 $action = $this->url_builder->getHref($this->goto_command, $item->getRefId());
36 $steps[] = $this->ui_factory->listing()->workflow()->step(
38 $item->getDescription(),
41 ->withAvailability($item->getAvailability())
44 $item->getLearningProgressStatus()
49 $workflow = $this->ui_factory->listing()->workflow()->linear(
50 $this->lng->txt(
'curriculum'),
71 switch ($il_lp_status) {
72 case \ilLPStatus::LP_STATUS_IN_PROGRESS_NUM:
75 case \ilLPStatus::LP_STATUS_COMPLETED_NUM:
78 case \ilLPStatus::LP_STATUS_FAILED_NUM:
81 case \ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM:
__construct(array $ls_items, ILIAS\UI\Factory $ui_factory, ilLanguage $language, string $goto_command, LSUrlBuilder $url_builder=null)
getLearnerCurriculum(bool $with_action=false)
translateLPStatus(int $il_lp_status)
Builds the overview (curriculum) of a LearningSequence.