12 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeProgressListGUI.php");
13 require_once(
'./Modules/StudyProgramme/classes/class.ilObjStudyProgrammeAdmin.php');
42 parent::__construct($a_progress);
46 $rbacsystem = $DIC[
'rbacsystem'];
48 $ilAccess = $DIC[
'ilAccess'];
50 $this->il_rbacsystem = $rbacsystem;
52 $this->il_access = $ilAccess;
60 assert(is_int($a_indent));
61 assert($a_indent >= 0);
62 $this->indent = $a_indent;
68 return parent::getHTML();
72 require_once(
"./Services/JSON/classes/class.ilJsonUtil.php");
74 parent::fillTemplate(
$tpl);
77 $tpl->setVariable(
"ACTIVE_HEAD",
"il_PrgAccordionHeadActive");
81 $tpl->setVariable(
"HREF_TITLE",
"");
86 $tpl->setCurrentBlock(
"expand");
87 $tpl->setVariable(
"EXP_ALT", $this->il_lng->txt(
"expand"));
89 $tpl->setVariable(
"NOT_EXP_ALT", $this->il_lng->txt(
"expanded"));
91 $tpl->parseCurrentBlock();
94 $tpl->touchBlock(
"indent");
97 for($i = 0; $i < $this->
getIndent(); $i++) {
98 $tpl->touchBlock(
"indent");
101 $tpl->setCurrentBlock(
"accordion");
103 $tpl->setVariable(
"ACCORDION_HIDE_CONTENT",
"");
106 $tpl->setVariable(
"ACCORDION_HIDE_CONTENT",
"ilAccHideContent");
108 $tpl->setVariable(
"ACCORDION_CONTENT", $content);
110 $tpl->parseCurrentBlock();
114 if (!$this->progress->getStudyProgramme()->hasLPChildren()) {
131 return $gui->getHTML();
132 }, $this->progress->getChildrenProgress()));
138 $can_read = $this->il_access->checkAccess(
"read",
"", $prg->getRefId(),
"prg", $prg->getId());
154 include_once(
"./Services/Object/classes/class.ilObjectListGUIPreloader.php");
158 foreach ($this->progress->getStudyProgramme()->getLPChildren() as $il_obj_crs_ref) {
160 $preloader->addItem($course->getId(), $course->getType(), $course->getRefId());
163 $preloader->preload();
165 return implode(
"\n", array_map(
function(
ilObjCourse $course) {
166 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeCourseListGUI.php");
167 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeContainerObjectMock.php");
172 return $item_gui->getListItemHTML
203 (
"orientation" =>
"horizontal" 205 ,
"int_id" =>
"prg_progress_".$this->progress->getId()
206 ,
"initial_opened" => null
208 ,
"behaviour" =>
"AllClosed" 209 ,
"toggle_class" =>
'il_PrgAccordionToggle' 210 ,
"toggle_act_class" =>
'foo' 211 ,
"content_class" =>
'il_PrgAccordionContent' 213 ,
"active_head_class" =>
"il_PrgAccordionHeadActive" 217 ,
"show_all_element" => null
218 ,
"hide_all_element" => null
219 ,
"reset_width" => true
224 return "prg_progress_".$this->progress->getId().
"_".$this->
getIndent();
228 require_once(
"Services/Utilities/classes/class.ilUtil.php");
233 require_once(
"Services/Utilities/classes/class.ilUtil.php");
242 return $_GET[
"prg_progress_id"] == $this->progress->getId();
246 if ($this->js_added) {
250 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
252 $this->il_tpl->addJavaScript(
"./Services/Accordion/js/accordion.js",
true, 3);
253 $this->js_added =
true;
257 if ($this->css_added) {
261 $this->il_tpl->addCSS(
"Modules/StudyProgramme/templates/css/ilStudyProgramme.css");
262 $this->css_added =
true;
static initjQueryUI()
Init jQuery UI (see included_components.txt for included components)
enableInfoScreen($a_info_screen)
En/disable path.
isRelevant()
Check whether this node is relevant for the user.
__construct(ilStudyProgrammeUserProgress $a_progress)
enableDelete($a_status)
En/disable delete.
newSubItem(ilStudyProgrammeUserProgress $a_progress)
enableProperties($a_status)
En/disable properties.
configureItemGUI(ilStudyProgrammeCourseListGUI $a_item_gui)
getStudyProgramme()
Get the program node where this progress belongs to was made.
enableCut($a_status)
En/disable cut.
Class ilStudyProgrammeExpandableProgressListGUI.
Preloader for object list GUIs.
const SETTING_VISIBLE_ON_PD_READ
static encode($mixed, $suppress_native=false)
enableSubscribe($a_status)
En/disable subscribe.
getId()
get object id public
const CONTEXT_PERSONAL_DESKTOP
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
getDescription()
get object description
enableProgressInfo($a_status)
enable progress info
enableNoticeProperties($a_status)
En/disable notices.
shouldShowSubProgress(ilStudyProgrammeUserProgress $a_progress)
enableCommands($a_status, $a_std_only=false)
En/disable commands.
Class ilStudyProgrammeContainerObjectMock.
Create styles array
The data for the language used.
enableCopy($a_status)
En/disable copy.
enableComments($a_value, $a_enable_comments_settings=true)
Toogle comments action status.
getAccordionContentHTML()
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.
getRefId()
get reference id public
getAccordionContentProgressesHTML()
Class ilStudyProgrammeProgressListGUI.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
Class ilStudyProgrammeCourseListGUI.
getTitleAndIconTarget(ilStudyProgrammeUserProgress $a_progress)
Represents the progress of a user at one node of a study programme.
getAccordionContentCoursesHTML()