24 include_once(
"./Services/Container/classes/class.ilContainerContentGUI.php");
45 parent::__construct($container_gui_obj);
62 return self::DETAILS_DEACTIVATED;
64 if(isset(
$_SESSION[
'sess'][
'expanded'][$a_session_id]))
66 return $_SESSION[
'sess'][
'expanded'][$a_session_id];
68 if(in_array($a_session_id,$this->force_details))
70 return self::DETAILS_ALL;
74 return self::DETAILS_TITLE;
90 include_once
'Services/Object/classes/class.ilObjectListGUIFactory.php';
93 "Services/Container");
125 if ($output_html !=
"")
130 if (is_array($this->items[
"sess"]) ||
131 $this->items[
'sess_link'][
'prev'][
'value'] ||
132 $this->items[
'sess_link'][
'next'][
'value'])
134 $this->items[
'sess'] =
ilUtil::sortArray($this->items[
'sess'],
'start',
'asc',
true,
false);
136 if($this->items[
'sess_link'][
'prev'][
'value'])
140 if($this->items[
'sess_link'][
'next'][
'value'])
145 $this->renderer->addTypeBlock(
"sess", $prefix, $postfix);
146 $this->renderer->setBlockPosition(
"sess", 1);
150 foreach($this->items[
"sess"] as $item_data)
152 if (!$this->renderer->hasItem($item_data[
"child"]))
157 $this->renderer->addItemToBlock(
"sess", $item_data[
"type"], $item_data[
"child"],
$html);
165 if (is_array($this->items[
"_all"]))
167 $this->renderer->addCustomBlock(
"_all", $lng->txt(
"content"));
168 $this->renderer->setBlockPosition(
"_all", ++$pos);
172 foreach($this->items[
"_all"] as $item_data)
175 if ($item_data[
"type"] ==
"sess" || $item_data[
"type"] ==
"itgr")
180 if (!$this->renderer->hasItem($item_data[
"child"]))
185 $this->renderer->addItemToBlock(
"_all", $item_data[
"type"], $item_data[
"child"],
$html);
191 $output_html .= $this->renderer->getHTML();
193 $a_tpl->setVariable(
"CONTAINER_PAGE_CONTENT", $output_html);
204 $lng->loadLanguageModule(
'crs');
207 "Services/Container");
208 $tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
209 $tpl->setCurrentBlock(
'item_title_linked');
213 $prefp = $ilUser->getPref(
'crs_sess_show_prev_'.$this->
getContainerObject()->getId());
217 $tpl->setVariable(
'TXT_TITLE_LINKED',$lng->txt(
'crs_link_hide_prev_sessions'));
218 $ilCtrl->setParameterByClass(get_class($this->
getContainerGUI()),
'crs_prev_sess',(
int) !$prefp);
219 $tpl->setVariable(
'HREF_TITLE_LINKED',$ilCtrl->getLinkTargetByClass(get_class($this->
getContainerGUI())));
224 $tpl->setVariable(
'TXT_TITLE_LINKED',$lng->txt(
'crs_link_show_all_prev_sessions'));
225 $ilCtrl->setParameterByClass(get_class($this->
getContainerGUI()),
'crs_prev_sess',(
int) !$prefp);
226 $tpl->setVariable(
'HREF_TITLE_LINKED',$ilCtrl->getLinkTargetByClass(get_class($this->
getContainerGUI())));
232 $prefn = $ilUser->getPref(
'crs_sess_show_next_'.$this->
getContainerObject()->getId());
236 $tpl->setVariable(
'TXT_TITLE_LINKED',$lng->txt(
'crs_link_hide_next_sessions'));
237 $ilCtrl->setParameterByClass(get_class($this->
getContainerGUI()),
'crs_next_sess',(
int) !$prefn);
238 $tpl->setVariable(
'HREF_TITLE_LINKED',$ilCtrl->getLinkTargetByClass(get_class($this->
getContainerGUI())));
243 $tpl->setVariable(
'TXT_TITLE_LINKED',$lng->txt(
'crs_link_show_all_next_sessions'));
244 $ilCtrl->setParameterByClass(get_class($this->
getContainerGUI()),
'crs_next_sess',(
int) !$prefn);
245 $tpl->setVariable(
'HREF_TITLE_LINKED',$ilCtrl->getLinkTargetByClass(get_class($this->
getContainerGUI())));
249 $tpl->parseCurrentBlock();
266 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
268 $tpl->setCurrentBlock(
'container_details_row');
269 $tpl->setVariable(
'TXT_DETAILS',$this->lng->txt(
'details'));
270 $tpl->parseCurrentBlock();
286 if(
$_GET[
'expand'] > 0)
288 $_SESSION[
'sess'][
'expanded'][abs((
int)
$_GET[
'expand'])] = self::DETAILS_ALL;
292 $_SESSION[
'sess'][
'expanded'][abs((
int)
$_GET[
'expand'])] = self::DETAILS_TITLE;
296 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
299 $this->force_details = $session;
303 $this->force_details =
array($session);
getItemGroupsHTML($a_pos=0)
Get item groups HTML.
initRenderer()
Init container renderer.
getMainContent()
Get content HTML for main column.
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
insertPageEmbeddedBlocks($a_output_html)
Insert blocks into container page.
Parent class of all container content GUIs.
getDetailsLevel($a_session_id)
get details level
renderSessionLimitLink($a_previous=true)
Show link to show/hide all previous/next sessions.
__showMaterials($a_tpl)
Show Materials.
getContainerGUI()
Get container GUI object.
special template class to simplify handling of ITX/PEAR
getContainerObject()
Get container object.
renderItem($a_item_data, $a_position=0, $a_force_icon=false, $a_pos_prefix="")
Render an item.
addFooterRow($tpl)
add footer row
Create styles array
The data for the language used.
clearAdminCommandsDetermination()
cleaer administration commands determination
static lookupLastSessionByCourse($a_ref_id)
public
__construct($container_gui_obj)
Constructor.
Shows all items in one block.
initDetails()
init details
static lookupNextSessionByCourse($a_ref_id)
public