34                 $this->container_gui = $container_gui_obj;
 
   35                 $this->container_obj = $this->container_gui->object;
 
   81                 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
 
   89                                 $obj_id, $ilUser->getId());
 
  104                 $ilCtrl->saveParameterByClass(
"ilcolumngui", 
"col_return");
 
  109                 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  119                 if ($ilCtrl->getNextClass() == 
"ilcolumngui" &&
 
  124                         $html = $ilCtrl->forwardCommand($column_gui);
 
  128                         if (!$ilCtrl->isAsynch())
 
  130                                 $html = $ilCtrl->getHTML($column_gui);
 
  144                 $ilCtrl->saveParameterByClass(
"ilcolumngui", 
"col_return");
 
  146                 switch ($ilCtrl->getNextClass())
 
  149                                 $ilCtrl->setReturn($this->container_gui, 
"");
 
  174                 include_once(
"Services/Block/classes/class.ilColumnGUI.php");
 
  183                 if (!$ilCtrl->isAsynch())
 
  193                                         $html = $ilCtrl->forwardCommand($column_gui);
 
  200                                         $html = $ilCtrl->forwardCommand($column_gui);
 
  217                 $this->adminCommands = 
false;
 
  229                 if (!$this->adminCommands)
 
  233                                 if ($rbacsystem->checkAccess(
"delete", $a_ref_id))
 
  235                                         $this->adminCommands = 
true;
 
  240                                 $this->adminCommands = $a_admin_com_included_in_list;
 
  248         protected function getItemGUI($item_data,$a_show_path = 
false)
 
  250                 include_once 
'Services/Object/classes/class.ilObjectListGUIFactory.php';
 
  253                 if (!is_object ($this->list_gui[$item_data[
"type"]]))
 
  257                         $this->list_gui[$item_data[
"type"]] =& $item_list_gui;
 
  261                         $item_list_gui =& $this->list_gui[$item_data[
"type"]];
 
  273                 $this->
getContainerGUI()->modifyItemGUI($item_list_gui, $item_data, $a_show_path);
 
  275                 return $item_list_gui;
 
  286                 foreach ($type_grps as $type => $v)
 
  289                         if (is_int(strpos($a_container_page_html, 
"[list-".$type.
"]")))
 
  303                 $this->embedded_block[$block_type][] = $block_parameter;
 
  311                 return $this->embedded_block;
 
  322                 if (is_array($this->embedded_block[
"type"]))
 
  325                         foreach ($this->embedded_block[
"type"] as $k => $type)
 
  327                                 if ($this->rendered_block[
"type"][$type] == 
"")
 
  329                                         if (is_array($this->items[$type]))
 
  337                                                 $item_rendered = 
false;
 
  342                                                         $this->items[
'sess'] = 
ilUtil::sortArray($this->items[
'sess'],
'start',
'ASC',
true,
true);
 
  345                                                 foreach($this->items[$type] as $k => $item_data)
 
  347                                                         $html = $this->
renderItem($item_data,$position++);
 
  351                                                                 $item_rendered = 
true;
 
  352                                                                 $this->rendered_items[$item_data[
"child"]] = 
true;
 
  360                                                         $this->rendered_block[
"type"][$type] = 
"";
 
  364                                                         $this->rendered_block[
"type"][$type] = 
$tpl->get();
 
  379         function renderItem($a_item_data,$a_position = 0,$a_force_icon = 
false)
 
  384                 if(!$ilAccess->checkAccess(
'visible',
'',$a_item_data[
'ref_id'],$a_item_data[
'type'],$a_item_data[
'obj_id'],$a_item_data[
'tree']))
 
  389                 $item_list_gui = $this->
getItemGUI($a_item_data);
 
  390                 if ($ilSetting->get(
"icon_position_in_lists") == 
"item_rows" ||
 
  391                         $a_item_data[
"type"] == 
"sess" || $a_force_icon)
 
  393                         $item_list_gui->enableIcon(
true);
 
  397                         $item_list_gui->enableCheckbox(
true);
 
  399                 if ($this->
getContainerGUI()->isActiveOrdering() && ($a_item_data[
'type'] != 
'sess' || get_class($this) != 
'ilContainerSessionsContentGUI'))
 
  401                         $item_list_gui->setPositionInputField(
"[".$a_item_data[
"ref_id"].
"]",
 
  402                                 sprintf(
'%.1f', $a_position));
 
  404                 if($a_item_data[
'type'] == 
'sess' and get_class($this) != 
'ilContainerObjectiveGUI')
 
  408                                 case self::DETAILS_TITLE:
 
  410                                         $item_list_gui->enableExpand(
true);
 
  411                                         $item_list_gui->setExpanded(
false);
 
  412                                         $item_list_gui->enableDescription(
false);
 
  413                                         $item_list_gui->enableProperties(
true);
 
  416                                 case self::DETAILS_ALL:
 
  418                                         $item_list_gui->enableExpand(
true);
 
  419                                         $item_list_gui->setExpanded(
true);
 
  420                                         $item_list_gui->enableDescription(
true);
 
  421                                         $item_list_gui->enableProperties(
true);
 
  426                                         $item_list_gui->enableExpand(
true);
 
  427                                         $item_list_gui->enableDescription(
true);
 
  428                                         $item_list_gui->enableProperties(
true);
 
  434                 if($a_item_data[
'type'] == 
'sess' and (
 
  435                                                                                         $this->
getDetailsLevel($a_item_data[
'obj_id']) != self::DETAILS_TITLE or
 
  443                         include_once(
'./Services/Container/classes/class.ilContainerSorting.php');
 
  444                         $items = $this->
getContainerObject()->items_obj->getItemsByEvent($a_item_data[
'obj_id']);
 
  447                         foreach($items as $item)
 
  451                                 if(!$ilAccess->checkAccess(
'visible',
'',$item[
'ref_id']))
 
  457                                 $item_list_gui2->enableIcon(
true);
 
  458                                 $item_list_gui2->enableItemDetailLinks(
false);
 
  461                                         $item_list_gui2->enableCheckbox(
true);
 
  467                                                 $item_list_gui2->setPositionInputField(
"[sess][".$a_item_data[
'obj_id'].
"][".$item[
"ref_id"].
"]",
 
  468                                                         sprintf(
'%.1f', $pos));
 
  473                                 $sub_item_html = $item_list_gui2->getListItemHTML($item[
'ref_id'],
 
  474                                         $item[
'obj_id'], $item[
'title'], $item[
'description']);
 
  478                                 if(strlen($sub_item_html))
 
  480                                         $item_list_gui->addSubItemHTML($sub_item_html);
 
  485                 if ($ilSetting->get(
"item_cmd_asynch"))
 
  488                         $ilCtrl->setParameter($this->container_gui, 
"cmdrefid", $a_item_data[
'ref_id']);
 
  489                         $asynch_url = $ilCtrl->getLinkTarget($this->container_gui,
 
  490                                         "getAsynchItemList", 
"", 
true, 
false);
 
  491                         $ilCtrl->setParameter($this->container_gui, 
"cmdrefid", 
"");
 
  494                 $html = $item_list_gui->getListItemHTML($a_item_data[
'ref_id'],
 
  495                         $a_item_data[
'obj_id'], $a_item_data[
'title'], $a_item_data[
'description'],
 
  496                         $asynch, 
false, $asynch_url);
 
  498                         $item_list_gui->adminCommandsIncluded());
 
  512                 $tpl = 
new ilTemplate (
"tpl.container_list_block.html", 
true, 
true,
 
  513                         "Services/Container");
 
  514                 $this->cur_row_type = 
"row_type_1";
 
  525                 $this->cur_row_type = ($this->cur_row_type == 
"row_type_1")
 
  531                         $a_tpl->setCurrentBlock($this->cur_row_type);
 
  532                         $a_tpl->setVariable(
"ROW_ID", 
'id="item_row_'.$a_ref_id.
'"');
 
  533                         $a_tpl->parseCurrentBlock();
 
  537                         $a_tpl->touchBlock($this->cur_row_type);
 
  540                 $a_tpl->setCurrentBlock(
"container_standard_row");
 
  541                 $a_tpl->setVariable(
"BLOCK_ROW_CONTENT", $a_html);
 
  542                 $a_tpl->parseCurrentBlock();
 
  543                 $a_tpl->touchBlock(
"container_row");
 
  553                 $a_tpl->setVariable(
"CB_ID", 
' id="bl_cntr_'.$this->bl_cnt.
'"');
 
  556                         $a_tpl->setCurrentBlock(
"select_all_row");
 
  557                         $a_tpl->setVariable(
"CHECKBOXNAME", 
"bl_cb_".$this->bl_cnt);
 
  558                         $a_tpl->setVariable(
"SEL_ALL_PARENT", 
"bl_cntr_".$this->bl_cnt);
 
  559                         $a_tpl->setVariable(
"SEL_ALL_PARENT", 
"bl_cntr_".$this->bl_cnt);
 
  560                         $a_tpl->setVariable(
"TXT_SELECT_ALL", $lng->txt(
"select_all"));
 
  561                         $a_tpl->parseCurrentBlock();
 
  565                 if ($a_text == 
"" && $a_type != 
"")
 
  567                         if (!$objDefinition->isPlugin($a_type))
 
  569                                 $title = $lng->txt(
"objs_".$a_type);
 
  573                                 include_once(
"./Services/Component/classes/class.ilPlugin.php");
 
  582                 if ($ilSetting->get(
"icon_position_in_lists") != 
"item_rows" &&
 
  587                         $a_tpl->setCurrentBlock(
"container_header_row_image");
 
  588                         $a_tpl->setVariable(
"HEADER_IMG", $icon);
 
  589                         $a_tpl->setVariable(
"HEADER_ALT", 
$title);
 
  593                         $a_tpl->setCurrentBlock(
"container_header_row");
 
  596                 $a_tpl->setVariable(
"BLOCK_HEADER_CONTENT", 
$title);
 
  597                 $a_tpl->parseCurrentBlock();
 
  598                 $a_tpl->touchBlock(
"container_row");
 
  609                 $this->cur_row_type = 
"";
 
  623                 foreach ($type_grps as $type => $v)
 
  626                         if (is_int(strpos($a_output_html, 
"[list-".$type.
"]")))
 
  628                                 $a_output_html = eregi_replace(
"\[list-".$type.
"\]",
 
  629                                         $this->rendered_block[
"type"][$type], $a_output_html);
 
  633                 return $a_output_html;
 
  641                 global 
$lng, $objDefinition;
 
  643                 $this->cur_row_type = ($this->cur_row_type == 
"row_type_1")
 
  647                 $a_tpl->touchBlock($this->cur_row_type);
 
  649                 if (!$objDefinition->isPlugin($type))
 
  651                         $type = $lng->txt(
"obj_".$a_type);
 
  655                         include_once(
"./Services/Component/classes/class.ilPlugin.php");
 
  658                 $a_message = str_replace(
"[type]", $type, $a_message);
 
  660                 $a_tpl->setVariable(
"ROW_NBSP", 
" ");
 
  662                 $a_tpl->setCurrentBlock(
"container_standard_row");
 
  663                 $a_tpl->setVariable(
"BLOCK_ROW_CONTENT",
 
  665                 $a_tpl->parseCurrentBlock();
 
  666                 $a_tpl->touchBlock(
"container_row");
 
  676                 $a_tpl->setCurrentBlock(
"container_block");
 
  677                 $a_tpl->parseCurrentBlock();
 
  687                 global $objDefinition;
 
  689                 if (empty($this->type_grps))
 
  692                                 $objDefinition->getGroupedRepositoryObjectTypes($this->
getContainerObject()->getType());
 
  694                 return $this->type_grps;
 
  704                 $lng->loadLanguageModule(
"rep");
 
  706                 $tpl = 
new ilTemplate(
"tpl.rep_intro.html", 
true, 
true, 
"Services/Repository");
 
  708                 $tpl->setVariable(
"TXT_WELCOME", $lng->txt(
"rep_intro"));
 
  709                 $tpl->setVariable(
"TXT_INTRO_1", $lng->txt(
"rep_intro1"));
 
  710                 $tpl->setVariable(
"TXT_INTRO_2", $lng->txt(
"rep_intro2"));
 
  711                 $tpl->setVariable(
"TXT_INTRO_3", sprintf($lng->txt(
"rep_intro3"), $lng->txt(
"add")));
 
  712                 $tpl->setVariable(
"TXT_INTRO_4", sprintf($lng->txt(
"rep_intro4"), $lng->txt(
"cat_add")));
 
  713                 $tpl->setVariable(
"TXT_INTRO_5", $lng->txt(
"rep_intro5"));
 
  714                 $tpl->setVariable(
"TXT_INTRO_6", $lng->txt(
"rep_intro6"));