12 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeProgressListGUI.php");
13 require_once(
'./Modules/StudyProgramme/classes/class.ilObjStudyProgrammeAdmin.php');
44 parent::__construct($a_progress);
48 $rbacsystem = $DIC[
'rbacsystem'];
50 $ilAccess = $DIC[
'ilAccess'];
52 $this->il_rbacsystem = $rbacsystem;
54 $this->il_access = $ilAccess;
64 assert(is_int($a_indent));
65 assert($a_indent >= 0);
66 $this->indent = $a_indent;
73 return parent::getHTML();
78 require_once(
"./Services/JSON/classes/class.ilJsonUtil.php");
80 parent::fillTemplate(
$tpl);
83 $tpl->setVariable(
"ACTIVE_HEAD",
"il_PrgAccordionHeadActive");
87 $tpl->setVariable(
"HREF_TITLE",
"");
92 $tpl->setCurrentBlock(
"expand");
93 $tpl->setVariable(
"EXP_ALT", $this->il_lng->txt(
"expand"));
95 $tpl->setVariable(
"NOT_EXP_ALT", $this->il_lng->txt(
"expanded"));
97 $tpl->parseCurrentBlock();
99 $tpl->touchBlock(
"indent");
103 $tpl->touchBlock(
"indent");
106 $tpl->setCurrentBlock(
"accordion");
108 $tpl->setVariable(
"ACCORDION_HIDE_CONTENT",
"");
110 $tpl->setVariable(
"ACCORDION_HIDE_CONTENT",
"ilAccHideContent");
112 $tpl->setVariable(
"ACCORDION_CONTENT", $content);
114 $tpl->parseCurrentBlock();
119 if (!$this->progress->getStudyProgramme()->hasLPChildren()) {
136 return $gui->getHTML();
137 }, $this->progress->getChildrenProgress()));
144 $can_read = $this->il_access->checkAccess(
"read",
"", $prg->getRefId(),
"prg", $prg->getId());
162 include_once(
"./Services/Object/classes/class.ilObjectListGUIPreloader.php");
166 foreach ($this->progress->getStudyProgramme()->getLPChildren() as $il_obj_crs_ref) {
168 $preloader->addItem($course->getId(), $course->getType(), $course->getRefId());
171 $preloader->preload();
173 return implode(
"\n", array_map(
function (
ilObjCourse $course) {
174 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeCourseListGUI.php");
175 require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeContainerObjectMock.php");
180 return $item_gui->getListItemHTML(
212 return array(
"orientation" =>
"horizontal" 214 ,
"int_id" =>
"prg_progress_" . $this->progress->getId()
215 ,
"initial_opened" => null
217 ,
"behaviour" =>
"AllClosed" 218 ,
"toggle_class" =>
'il_PrgAccordionToggle' 219 ,
"toggle_act_class" =>
'foo' 220 ,
"content_class" =>
'il_PrgAccordionContent' 222 ,
"active_head_class" =>
"il_PrgAccordionHeadActive" 226 ,
"show_all_element" => null
227 ,
"hide_all_element" => null
228 ,
"reset_width" => true
234 return "prg_progress_" . $this->progress->getId() .
"_" . $this->
getIndent();
239 require_once(
"Services/Utilities/classes/class.ilUtil.php");
245 require_once(
"Services/Utilities/classes/class.ilUtil.php");
256 return $_GET[
"prg_progress_id"] == $this->progress->getId();
261 if ($this->js_added) {
265 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
267 $this->il_tpl->addJavaScript(
"./Services/Accordion/js/accordion.js",
true, 3);
268 $this->js_added =
true;
273 if ($this->css_added) {
277 $this->il_tpl->addCSS(
"Modules/StudyProgramme/templates/css/ilStudyProgramme.css");
278 $this->css_added =
true;
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.
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)
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()