53 $this->container_gui = $container_gui_obj;
54 $this->container_obj = $this->container_gui->object;
100 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
120 $ilCtrl->saveParameterByClass(
"ilcolumngui",
"col_return");
125 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
135 if ($ilCtrl->getNextClass() ==
"ilcolumngui" &&
140 $html = $ilCtrl->forwardCommand($column_gui);
144 if (!$ilCtrl->isAsynch())
146 $html = $ilCtrl->getHTML($column_gui);
160 $ilCtrl->saveParameterByClass(
"ilcolumngui",
"col_return");
162 switch ($ilCtrl->getNextClass())
165 $ilCtrl->setReturn($this->container_gui,
"");
190 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
199 if (!$ilCtrl->isAsynch())
209 $html = $ilCtrl->forwardCommand($column_gui);
216 $html = $ilCtrl->forwardCommand($column_gui);
233 $this->adminCommands =
false;
245 if (!$this->adminCommands)
249 if ($rbacsystem->checkAccess(
"delete", $a_ref_id))
251 $this->adminCommands =
true;
256 $this->adminCommands = $a_admin_com_included_in_list;
264 protected function getItemGUI($item_data,$a_show_path =
false)
266 include_once
'./classes/class.ilObjectListGUIFactory.php';
269 if (!is_object ($this->list_gui[$item_data[
"type"]]))
273 $this->list_gui[$item_data[
"type"]] =& $item_list_gui;
277 $item_list_gui =& $this->list_gui[$item_data[
"type"]];
283 $item_list_gui->enableDelete(
false);
284 $item_list_gui->enableLink(
false);
285 $item_list_gui->enableCut(
false);
289 $this->
getContainerGUI()->modifyItemGUI($item_list_gui, $item_data, $a_show_path);
291 return $item_list_gui;
302 foreach ($type_grps as $type => $v)
305 if (is_int(strpos($a_container_page_html,
"[list-".$type.
"]")))
319 $this->embedded_block[$block_type][] = $block_parameter;
327 return $this->embedded_block;
338 if (is_array($this->embedded_block[
"type"]))
341 foreach ($this->embedded_block[
"type"] as $k => $type)
343 if ($this->rendered_block[
"type"][$type] ==
"")
345 if (is_array($this->items[$type]))
353 $item_rendered =
false;
355 foreach($this->items[$type] as $k => $item_data)
357 $html = $this->
renderItem($item_data,$position++);
361 $item_rendered =
true;
362 $this->rendered_items[$item_data[
"child"]] =
true;
372 $this->rendered_block[
"type"][$type] =
$tpl->get();
386 function renderItem($a_item_data,$a_position = 0,$a_force_icon =
false)
391 if(!$ilAccess->checkAccess(
'visible',
'',$a_item_data[
'ref_id'],$a_item_data[
'type'],$a_item_data[
'obj_id'],$a_item_data[
'tree']))
396 $item_list_gui = $this->
getItemGUI($a_item_data);
397 if ($ilSetting->get(
"icon_position_in_lists") ==
"item_rows" ||
398 $a_item_data[
"type"] ==
"sess" || $a_force_icon)
400 $item_list_gui->enableIcon(
true);
404 $item_list_gui->enableCheckbox(
true);
407 $item_list_gui->setPositionInputField(
"[".$a_item_data[
"ref_id"].
"]",
408 sprintf(
'%.1f', $a_position));
411 if($a_item_data[
'type'] ==
'sess' and get_class($this) !=
'ilContainerObjectiveGUI')
415 case self::DETAILS_TITLE:
416 $item_list_gui->enableExpand(
true);
417 $item_list_gui->setExpanded(
false);
418 $item_list_gui->enableDescription(
false);
419 $item_list_gui->enableProperties(
false);
422 case self::DETAILS_ALL:
423 $item_list_gui->enableExpand(
true);
424 $item_list_gui->setExpanded(
true);
425 $item_list_gui->enableDescription(
true);
426 $item_list_gui->enableProperties(
true);
430 $item_list_gui->enableExpand(
false);
431 $item_list_gui->enableDescription(
true);
432 $item_list_gui->enableProperties(
true);
438 if ($a_item_data[
'type'] ==
'sess' and $this->
getDetailsLevel($a_item_data[
'obj_id']) != self::DETAILS_TITLE)
442 include_once(
'./Services/Container/classes/class.ilContainerSorting.php');
443 $items = $this->
getContainerObject()->items_obj->getItemsByEvent($a_item_data[
'obj_id']);
446 foreach($items as $item)
450 if(!$ilAccess->checkAccess(
'visible',
'',$item[
'ref_id']))
456 $item_list_gui2->enableIcon(
true);
457 $item_list_gui2->enableItemDetailLinks(
false);
460 $item_list_gui2->enableCheckbox(
true);
463 $item_list_gui2->setPositionInputField(
"[sess][".$a_item_data[
'obj_id'].
"][".$item[
"ref_id"].
"]",
464 sprintf(
'%.1f', $pos));
469 $sub_item_html = $item_list_gui2->getListItemHTML($item[
'ref_id'],
470 $item[
'obj_id'], $item[
'title'], $item[
'description']);
474 if(strlen($sub_item_html))
476 $item_list_gui->addSubItemHTML($sub_item_html);
481 $html = $item_list_gui->getListItemHTML($a_item_data[
'ref_id'],
482 $a_item_data[
'obj_id'], $a_item_data[
'title'], $a_item_data[
'description']);
484 $item_list_gui->adminCommandsIncluded());
498 $tpl =
new ilTemplate (
"tpl.container_list_block.html",
true,
true,
499 "Services/Container");
500 $this->cur_row_type =
"row_type_1";
511 $this->cur_row_type = ($this->cur_row_type ==
"row_type_1")
515 $a_tpl->touchBlock($this->cur_row_type);
517 $a_tpl->setCurrentBlock(
"container_standard_row");
518 $a_tpl->setVariable(
"BLOCK_ROW_CONTENT", $a_html);
519 $a_tpl->parseCurrentBlock();
520 $a_tpl->touchBlock(
"container_row");
530 if ($a_text ==
"" && $a_type !=
"")
532 $title = $lng->txt(
"objs_".$a_type);
539 if ($ilSetting->get(
"icon_position_in_lists") !=
"item_rows" &&
544 $a_tpl->setCurrentBlock(
"container_header_row_image");
545 $a_tpl->setVariable(
"HEADER_IMG", $icon);
546 $a_tpl->setVariable(
"HEADER_ALT",
$title);
550 $a_tpl->setCurrentBlock(
"container_header_row");
553 $a_tpl->setVariable(
"BLOCK_HEADER_CONTENT",
$title);
554 $a_tpl->parseCurrentBlock();
555 $a_tpl->touchBlock(
"container_row");
566 $this->cur_row_type =
"";
580 foreach ($type_grps as $type => $v)
583 if (is_int(strpos($a_output_html,
"[list-".$type.
"]")))
585 $a_output_html = eregi_replace(
"\[list-".$type.
"\]",
586 $this->rendered_block[
"type"][$type], $a_output_html);
590 return $a_output_html;
600 $this->cur_row_type = ($this->cur_row_type ==
"row_type_1")
604 $a_tpl->touchBlock($this->cur_row_type);
606 $type = $lng->txt(
"obj_".$a_type);
607 $a_message = str_replace(
"[type]", $type, $a_message);
609 $a_tpl->setVariable(
"ROW_NBSP",
" ");
611 $a_tpl->setCurrentBlock(
"container_standard_row");
612 $a_tpl->setVariable(
"BLOCK_ROW_CONTENT",
614 $a_tpl->parseCurrentBlock();
615 $a_tpl->touchBlock(
"container_row");
623 $a_tpl->touchBlock(
"separator_row");
624 $a_tpl->touchBlock(
"container_row");
634 global $objDefinition;
636 if (empty($this->type_grps))
639 $objDefinition->getGroupedRepositoryObjectTypes($this->
getContainerObject()->getType());
641 return $this->type_grps;
651 $lng->loadLanguageModule(
"rep");
653 $tpl =
new ilTemplate(
"tpl.rep_intro.html",
true,
true,
"Services/Repository");
655 $tpl->setVariable(
"TXT_WELCOME", $lng->txt(
"rep_intro"));
656 $tpl->setVariable(
"TXT_INTRO_1", $lng->txt(
"rep_intro1"));
657 $tpl->setVariable(
"TXT_INTRO_2", $lng->txt(
"rep_intro2"));
658 $tpl->setVariable(
"TXT_INTRO_3", sprintf($lng->txt(
"rep_intro3"), $lng->txt(
"add")));
659 $tpl->setVariable(
"TXT_INTRO_4", sprintf($lng->txt(
"rep_intro4"), $lng->txt(
"cat_add")));
660 $tpl->setVariable(
"TXT_INTRO_5", $lng->txt(
"rep_intro5"));
661 $tpl->setVariable(
"TXT_INTRO_6", $lng->txt(
"rep_intro6"));