ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilStudyProgrammeIndividualPlanProgressListGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 protected function showMyProgress(): bool
24 {
25 // expand tree completely on start
26 return $this->progress->isRelevant();
27 }
28
30 {
31 return true;
32 }
33
35 {
37 }
38
39 protected function getTitleForItem(ilObjStudyProgramme $programme): string
40 {
41 $title = $programme->getTitle();
42 if (!$this->progress->isRelevant()
44 ) {
45 return "<s>" . $title . "</s>";
46 }
47 return $title;
48 }
49
50 protected function buildProgressStatus(ilPRGProgress $progress): string
51 {
53 $can_be_completed = $programme->canBeCompleted($progress);
54
55 $points = parent::buildProgressStatus($progress);
56 if (!$can_be_completed && !$progress->isSuccessful()) {
57 return $this->alert_icon . $points;
58 }
59
60 return $points;
61 }
62
63 protected function configureItemGUI(ilStudyProgrammeCourseListGUI $item_gui): void
64 {
65 $item_gui->enableComments(false);
66 $item_gui->enableTags(false);
67 $item_gui->enableIcon(true);
68 $item_gui->enableDelete(false);
69 $item_gui->enableCut(false);
70 $item_gui->enableCopy(false);
71 $item_gui->enableLink(false);
72 $item_gui->enableInfoScreen(false);
73 $item_gui->enableSubscribe(false);
74 $item_gui->enableCheckbox(false);
75 $item_gui->enableDescription(true);
76 $item_gui->enableProperties(false);
77 $item_gui->enablePreconditions(false);
78 $item_gui->enableNoticeProperties(false);
79 $item_gui->enableCommands(false, true);
80 $item_gui->enableProgressInfo(false);
81 $item_gui->setIndent($this->getIndent() + 2);
82 }
83}
static getInstanceByObjId(int $obj_id)
enableDelete(bool $status)
enableDescription(bool $status)
enableProgressInfo(bool $status)
enablePreconditions(bool $status)
enableComments(bool $value, bool $enable_comments_settings=true)
enableInfoScreen(bool $info_screen)
enableCommands(bool $status, bool $std_only=false)
enableCheckbox(bool $status)
enableNoticeProperties(bool $status)
enableProperties(bool $status)
enableSubscribe(bool $status)
A Progress is the status of a user on a single node of an assignment; it is unique by assignment_id:u...
Class ilStudyProgrammeCourseListGUI.