ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
12 require_once("Modules/StudyProgramme/classes/class.ilStudyProgrammeExpandableProgressListGUI.php");
13 
15 {
16  protected function showMyProgress()
17  {
18  // expand tree completely on start
19  return $this->progress->isRelevant();
20  }
21 
23  {
24  return true;
25  }
26 
27  public function newSubItem(ilStudyProgrammeUserProgress $a_progress)
28  {
29  return new ilStudyProgrammeIndividualPlanProgressListGUI($a_progress);
30  }
31 
32  protected function getTitleForItem(ilObjStudyProgramme $a_programme)
33  {
34  $title = $a_programme->getTitle();
35  if (!$this->progress->isRelevant() || $this->progress->getStudyProgramme()->getStatus() == ilStudyProgrammeSettings::STATUS_OUTDATED) {
36  return "<s>" . $title . "</s>";
37  }
38  return $title;
39  }
40 
41  protected function buildProgressStatus(ilStudyProgrammeUserProgress $a_progress)
42  {
43  $points = parent::buildProgressStatus($a_progress);
44  if (!$a_progress->canBeCompleted() && !$a_progress->isSuccessful()) {
45  return "<img src='" . ilUtil::getImagePath("icon_alert.svg") . "' alt='" . $this->il_lng->txt("warning") . "'>" . $points;
46  } else {
47  return $points;
48  }
49  }
50 
51  protected function configureItemGUI(ilStudyProgrammeCourseListGUI $a_item_gui)
52  {
53  $a_item_gui->enableComments(false);
54  $a_item_gui->enableTags(false);
55  $a_item_gui->enableIcon(true);
56  $a_item_gui->enableDelete(false);
57  $a_item_gui->enableCut(false);
58  $a_item_gui->enableCopy(false);
59  $a_item_gui->enableLink(false);
60  $a_item_gui->enableInfoScreen(false);
61  $a_item_gui->enableSubscribe(false);
62  $a_item_gui->enableCheckbox(false);
63  $a_item_gui->enableDescription(true);
64  $a_item_gui->enableProperties(false);
65  $a_item_gui->enablePreconditions(false);
66  $a_item_gui->enableNoticeProperties(false);
67  $a_item_gui->enableCommands(false, true);
68  $a_item_gui->enableProgressInfo(false);
69  $a_item_gui->setIndent($this->getIndent() + 2);
70  }
71 }
enableInfoScreen($a_info_screen)
En/disable path.
enableDelete($a_status)
En/disable delete.
enableProperties($a_status)
En/disable properties.
enableCut($a_status)
En/disable cut.
isSuccessful()
Check whether the user was successful on this node.
canBeCompleted()
Check whether the user can achieve enough points on the subnodes to be able to complete this node...
enableSubscribe($a_status)
En/disable subscribe.
enablePreconditions($a_status)
En/disable preconditions.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
enableDescription($a_status)
En/disable description.
getTitle()
get object title public
enableProgressInfo($a_status)
enable progress info
enableNoticeProperties($a_status)
En/disable notices.
enableCommands($a_status, $a_std_only=false)
En/disable commands.
enableCopy($a_status)
En/disable copy.
enableComments($a_value, $a_enable_comments_settings=true)
Toogle comments action status.
enableIcon($a_status)
En/Dis-able icons.
enableCheckbox($a_status)
En/Dis-able checkboxes.
enableTags($a_value)
Toogle tags action status.
enableLink($a_status)
En/disable link.
Class ilStudyProgrammeCourseListGUI.
Represents the progress of a user at one node of a study programme.