ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilStudyProgrammeIndividualPlanProgressListGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
12require_once("Modules/StudyProgramme/classes/class.ilStudyProgrammeExpandableProgressListGUI.php");
13
15 protected function showMyProgress() {
16 // expand tree completely on start
17 return $this->progress->isRelevant();
18 }
19
21 return true;
22 }
23
24 public function newSubItem(ilStudyProgrammeUserProgress $a_progress) {
26 }
27
28 protected function getTitleForItem(ilObjStudyProgramme $a_programme) {
29 $title = $a_programme->getTitle();
30 if (!$this->progress->isRelevant() || $this->progress->getStudyProgramme()->getStatus() == ilStudyProgramme::STATUS_OUTDATED) {
31 return "<s>".$title."</s>";
32 }
33 return $title;
34 }
35
36 protected function buildProgressStatus(ilStudyProgrammeUserProgress $a_progress) {
37 $points = parent::buildProgressStatus($a_progress);
38 if (!$a_progress->canBeCompleted() && !$a_progress->isSuccessful()) {
39 return "<img src='".ilUtil::getImagePath("icon_alert.svg")."' alt='".$this->il_lng->txt("warning")."'>".$points;
40 }
41 else {
42 return $points;
43 }
44 }
45
46 //TODO: public -> protected when PHP5.3 support is cancelled
47 public function configureItemGUI(ilStudyProgrammeCourseListGUI $a_item_gui) {
48 $a_item_gui->enableComments(false);
49 $a_item_gui->enableTags(false);
50 $a_item_gui->enableIcon(true);
51 $a_item_gui->enableDelete(false);
52 $a_item_gui->enableCut(false);
53 $a_item_gui->enableCopy(false);
54 $a_item_gui->enablePayment(false);
55 $a_item_gui->enableLink(false);
56 $a_item_gui->enableInfoScreen(false);
57 $a_item_gui->enableSubscribe(false);
58 $a_item_gui->enableCheckbox(false);
59 $a_item_gui->enableDescription(true);
60 $a_item_gui->enableProperties(false);
61 $a_item_gui->enablePreconditions(false);
62 $a_item_gui->enableNoticeProperties(false);
63 $a_item_gui->enableCommands(false, true);
64 $a_item_gui->enableProgressInfo(false);
65 $a_item_gui->setIndent($this->getIndent() + 2);
66 }
67}
Class ilObjStudyProgramme.
enableDescription($a_status)
En/disable description.
enableCommands($a_status, $a_std_only=false)
En/disable commands.
enableProperties($a_status)
En/disable properties.
enableLink($a_status)
En/disable link.
enableCheckbox($a_status)
En/Dis-able checkboxes.
enableNoticeProperties($a_status)
En/disable notices.
enablePayment($a_status)
En/disable payment.
enableIcon($a_status)
En/Dis-able icons.
enableCopy($a_status)
En/disable copy.
enablePreconditions($a_status)
En/disable preconditions.
enableTags($a_value)
Toogle tags action status.
enableCut($a_status)
En/disable cut.
enableProgressInfo($a_status)
enable progress info
enableSubscribe($a_status)
En/disable subscribe.
enableComments($a_value, $a_enable_comments_settings=true)
Toogle comments action status.
enableInfoScreen($a_info_screen)
En/disable path.
enableDelete($a_status)
En/disable delete.
getTitle()
get object title @access public
Class ilStudyProgrammeCourseListGUI.
Represents the progress of a user at one node of a study programme.
canBeCompleted()
Check whether the user can achieve enough points on the subnodes to be able to complete this node.
isSuccessful()
Check whether the user was successful on this node.