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"]];
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;
370 $this->rendered_block[
"type"][
$type] =
"";
374 $this->rendered_block[
"type"][
$type] =
$tpl->get();
389 function renderItem($a_item_data,$a_position = 0,$a_force_icon =
false)
394 if(!$ilAccess->checkAccess(
'visible',
'',$a_item_data[
'ref_id'],$a_item_data[
'type'],$a_item_data[
'obj_id'],$a_item_data[
'tree']))
399 $item_list_gui = $this->
getItemGUI($a_item_data);
400 if ($ilSetting->get(
"icon_position_in_lists") ==
"item_rows" ||
401 $a_item_data[
"type"] ==
"sess" || $a_force_icon)
403 $item_list_gui->enableIcon(
true);
407 $item_list_gui->enableCheckbox(
true);
411 $item_list_gui->setPositionInputField(
"[".$a_item_data[
"ref_id"].
"]",
412 sprintf(
'%.1f', $a_position));
414 if($a_item_data[
'type'] ==
'sess' and get_class($this) !=
'ilContainerObjectiveGUI')
418 case self::DETAILS_TITLE:
420 $item_list_gui->enableExpand(
true);
421 $item_list_gui->setExpanded(
false);
422 $item_list_gui->enableDescription(
false);
423 $item_list_gui->enableProperties(
true);
426 case self::DETAILS_ALL:
428 $item_list_gui->enableExpand(
true);
429 $item_list_gui->setExpanded(
true);
430 $item_list_gui->enableDescription(
true);
431 $item_list_gui->enableProperties(
true);
436 $item_list_gui->enableExpand(
true);
437 $item_list_gui->enableDescription(
true);
438 $item_list_gui->enableProperties(
true);
444 if($a_item_data[
'type'] ==
'sess' and (
445 $this->
getDetailsLevel($a_item_data[
'obj_id']) != self::DETAILS_TITLE or
453 include_once(
'./Services/Container/classes/class.ilContainerSorting.php');
454 $items = $this->
getContainerObject()->items_obj->getItemsByEvent($a_item_data[
'obj_id']);
457 foreach($items as $item)
461 if(!$ilAccess->checkAccess(
'visible',
'',$item[
'ref_id']))
467 $item_list_gui2->enableIcon(
true);
468 $item_list_gui2->enableItemDetailLinks(
false);
471 $item_list_gui2->enableCheckbox(
true);
477 $item_list_gui2->setPositionInputField(
"[sess][".$a_item_data[
'obj_id'].
"][".$item[
"ref_id"].
"]",
478 sprintf(
'%.1f', $pos));
483 $sub_item_html = $item_list_gui2->getListItemHTML($item[
'ref_id'],
484 $item[
'obj_id'], $item[
'title'], $item[
'description']);
488 if(strlen($sub_item_html))
490 $item_list_gui->addSubItemHTML($sub_item_html);
495 if ($ilSetting->get(
"item_cmd_asynch"))
498 $ilCtrl->setParameter($this->container_gui,
"cmdrefid", $a_item_data[
'ref_id']);
499 $asynch_url = $ilCtrl->getLinkTarget($this->container_gui,
500 "getAsynchItemList");
501 $ilCtrl->setParameter($this->container_gui,
"cmdrefid",
"");
504 $html = $item_list_gui->getListItemHTML($a_item_data[
'ref_id'],
505 $a_item_data[
'obj_id'], $a_item_data[
'title'], $a_item_data[
'description'],
506 $asynch,
false, $asynch_url);
508 $item_list_gui->adminCommandsIncluded());
522 $tpl =
new ilTemplate (
"tpl.container_list_block.html",
true,
true,
523 "Services/Container");
524 $this->cur_row_type =
"row_type_1";
535 $this->cur_row_type = ($this->cur_row_type ==
"row_type_1")
541 $a_tpl->setCurrentBlock($this->cur_row_type);
542 $a_tpl->setVariable(
"ROW_ID",
'id="item_row_'.$a_ref_id.
'"');
543 $a_tpl->parseCurrentBlock();
547 $a_tpl->touchBlock($this->cur_row_type);
550 $a_tpl->setCurrentBlock(
"container_standard_row");
551 $a_tpl->setVariable(
"BLOCK_ROW_CONTENT", $a_html);
552 $a_tpl->parseCurrentBlock();
553 $a_tpl->touchBlock(
"container_row");
563 $a_tpl->setVariable(
"CB_ID",
' id="bl_cntr_'.$this->bl_cnt.
'"');
566 $a_tpl->setCurrentBlock(
"select_all_row");
567 $a_tpl->setVariable(
"CHECKBOXNAME",
"bl_cb_".$this->bl_cnt);
568 $a_tpl->setVariable(
"SEL_ALL_PARENT",
"bl_cntr_".$this->bl_cnt);
569 $a_tpl->setVariable(
"SEL_ALL_PARENT",
"bl_cntr_".$this->bl_cnt);
570 $a_tpl->setVariable(
"TXT_SELECT_ALL", $lng->txt(
"select_all"));
571 $a_tpl->parseCurrentBlock();
575 if ($a_text ==
"" && $a_type !=
"")
577 if (!$objDefinition->isPlugin($a_type))
579 $title = $lng->txt(
"objs_".$a_type);
583 include_once(
"./Services/Component/classes/class.ilPlugin.php");
592 if ($ilSetting->get(
"icon_position_in_lists") !=
"item_rows" &&
597 $a_tpl->setCurrentBlock(
"container_header_row_image");
598 $a_tpl->setVariable(
"HEADER_IMG", $icon);
599 $a_tpl->setVariable(
"HEADER_ALT",
$title);
603 $a_tpl->setCurrentBlock(
"container_header_row");
606 $a_tpl->setVariable(
"BLOCK_HEADER_CONTENT",
$title);
607 $a_tpl->parseCurrentBlock();
608 $a_tpl->touchBlock(
"container_row");
619 $this->cur_row_type =
"";
633 foreach ($type_grps as
$type => $v)
636 if (is_int(strpos($a_output_html,
"[list-".
$type.
"]")))
638 $a_output_html = eregi_replace(
"\[list-".
$type.
"\]",
639 $this->rendered_block[
"type"][
$type], $a_output_html);
643 return $a_output_html;
651 global
$lng, $objDefinition;
653 $this->cur_row_type = ($this->cur_row_type ==
"row_type_1")
657 $a_tpl->touchBlock($this->cur_row_type);
659 if (!$objDefinition->isPlugin(
$type))
661 $type = $lng->txt(
"obj_".$a_type);
665 include_once(
"./Services/Component/classes/class.ilPlugin.php");
668 $a_message = str_replace(
"[type]",
$type, $a_message);
670 $a_tpl->setVariable(
"ROW_NBSP",
" ");
672 $a_tpl->setCurrentBlock(
"container_standard_row");
673 $a_tpl->setVariable(
"BLOCK_ROW_CONTENT",
675 $a_tpl->parseCurrentBlock();
676 $a_tpl->touchBlock(
"container_row");
686 $a_tpl->setCurrentBlock(
"container_block");
687 $a_tpl->parseCurrentBlock();
697 global $objDefinition;
699 if (empty($this->type_grps))
702 $objDefinition->getGroupedRepositoryObjectTypes($this->
getContainerObject()->getType());
704 return $this->type_grps;
714 $lng->loadLanguageModule(
"rep");
716 $tpl =
new ilTemplate(
"tpl.rep_intro.html",
true,
true,
"Services/Repository");
718 $tpl->setVariable(
"TXT_WELCOME", $lng->txt(
"rep_intro"));
719 $tpl->setVariable(
"TXT_INTRO_1", $lng->txt(
"rep_intro1"));
720 $tpl->setVariable(
"TXT_INTRO_2", $lng->txt(
"rep_intro2"));
721 $tpl->setVariable(
"TXT_INTRO_3", sprintf($lng->txt(
"rep_intro3"), $lng->txt(
"add")));
722 $tpl->setVariable(
"TXT_INTRO_4", sprintf($lng->txt(
"rep_intro4"), $lng->txt(
"cat_add")));
723 $tpl->setVariable(
"TXT_INTRO_5", $lng->txt(
"rep_intro5"));
724 $tpl->setVariable(
"TXT_INTRO_6", $lng->txt(
"rep_intro6"));