12require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeProgressListGUI.php");
13require_once(
'./Modules/StudyProgramme/classes/class.ilObjStudyProgrammeAdmin.php');
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"
224 ,
"id" => $this->getAccordionId()
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;
An exception for terminatinating execution or to throw for unit testing.
static encode($mixed, $suppress_native=false)
const SETTING_VISIBLE_ON_PD_READ
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
Preloader for object list GUIs.
enableDescription($a_status)
En/disable description.
enableCommands($a_status, $a_std_only=false)
En/disable commands.
enableProperties($a_status)
En/disable properties.
const CONTEXT_PERSONAL_DESKTOP
enableLink($a_status)
En/disable link.
enableCheckbox($a_status)
En/Dis-able checkboxes.
enableNoticeProperties($a_status)
En/disable notices.
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.
getRefId()
get reference id @access public
getDescription()
get object description
getId()
get object id @access public
getTitle()
get object title @access public
Class ilStudyProgrammeContainerObjectMock.
Class ilStudyProgrammeCourseListGUI.
Class ilStudyProgrammeExpandableProgressListGUI.
getAccordionContentCoursesHTML()
newSubItem(ilStudyProgrammeUserProgress $a_progress)
getAccordionContentProgressesHTML()
getTitleAndIconTarget(ilStudyProgrammeUserProgress $a_progress)
configureItemGUI(ilStudyProgrammeCourseListGUI $a_item_gui)
__construct(ilStudyProgrammeUserProgress $a_progress)
shouldShowSubProgress(ilStudyProgrammeUserProgress $a_progress)
getAccordionContentHTML()
Class ilStudyProgrammeProgressListGUI.
Represents the progress of a user at one node of a study programme.
getStudyProgramme()
Get the program node this progress belongs to.
isRelevant()
Check whether this node is relevant for the user.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components....
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl