19 declare(strict_types=1);
41 $this->
lng = $language;
49 foreach ($this->ls_items->getItems() as $item) {
52 $action = $this->url_builder->getHref($this->goto_command, $item->getRefId());
55 $steps[] = $this->ui_factory->listing()->workflow()->step(
57 $item->getDescription(),
60 ->withAvailability($item->getAvailability())
63 $item->getLearningProgressStatus()
68 $workflow = $this->ui_factory->listing()->workflow()->linear(
69 $this->
lng->txt(
'curriculum'),
74 $current_position = max(0, $this->ls_items->getCurrentItemPosition());
75 $workflow = $workflow->withActive($current_position);
96 switch ($il_lp_status) {
97 case \ilLPStatus::LP_STATUS_IN_PROGRESS_NUM:
99 case \ilLPStatus::LP_STATUS_COMPLETED_NUM:
101 case \ilLPStatus::LP_STATUS_FAILED_NUM:
103 case \ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM:
LSUrlBuilder $url_builder
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ILIAS UI Factory $ui_factory
This combines calls to ProgressDB and StateDB to handle learner-items in the context of a specific LS...
__construct(ilLSLearnerItemsQueries $ls_items, ILIAS\UI\Factory $ui_factory, ilLanguage $language, string $goto_command, ?LSUrlBuilder $url_builder=null)
ilLSLearnerItemsQueries $ls_items
getLearnerCurriculum(bool $with_action=false)
translateLPStatus(int $il_lp_status)
Builds the overview (curriculum) of a LearningSequence.