12require_once(
"Modules/StudyProgramme/classes/class.ilStudyProgrammeProgressListGUI.php");
 
   13require_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" 
  215                        , 
"id" => $this->getAccordionId()
 
  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;
 
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 where this progress belongs to was made.
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()
Init jQuery UI (see included_components.txt for included components)