24 include_once(
"./Services/Container/classes/class.ilContainerContentGUI.php");
50 $this->tabs = $DIC->tabs();
51 $this->
user = $DIC->user();
52 $this->ctrl = $DIC->ctrl();
53 $lng = $DIC->language();
55 parent::__construct($container_gui_obj);
71 return self::DETAILS_DEACTIVATED;
73 if (isset(
$_SESSION[
'sess'][
'expanded'][$a_session_id])) {
74 return $_SESSION[
'sess'][
'expanded'][$a_session_id];
76 if (in_array($a_session_id, $this->force_details)) {
77 return self::DETAILS_ALL;
79 return self::DETAILS_TITLE;
96 include_once
'Services/Object/classes/class.ilObjectListGUIFactory.php';
99 "tpl.container_page.html",
135 if ($output_html !=
"") {
139 if (is_array($this->items[
"sess"]) ||
140 $this->items[
'sess_link'][
'prev'][
'value'] ||
141 $this->items[
'sess_link'][
'next'][
'value']) {
142 $this->items[
'sess'] =
ilUtil::sortArray($this->items[
'sess'],
'start',
'asc',
true,
false);
144 if ($this->items[
'sess_link'][
'prev'][
'value']) {
147 if ($this->items[
'sess_link'][
'next'][
'value']) {
151 $this->renderer->addTypeBlock(
"sess", $prefix, $postfix);
152 $this->renderer->setBlockPosition(
"sess", 1);
156 foreach ($this->items[
"sess"] as $item_data) {
157 if (!$this->renderer->hasItem($item_data[
"child"])) {
160 $this->renderer->addItemToBlock(
"sess", $item_data[
"type"], $item_data[
"child"],
$html);
168 if (is_array($this->items[
"_all"])) {
169 $this->renderer->addCustomBlock(
"_all",
$lng->txt(
"content"));
170 $this->renderer->setBlockPosition(
"_all", ++$pos);
174 foreach ($this->items[
"_all"] as $item_data) {
176 if ($item_data[
"type"] ==
"sess" || $item_data[
"type"] ==
"itgr") {
180 if (!$this->renderer->hasItem($item_data[
"child"])) {
183 $this->renderer->addItemToBlock(
"_all", $item_data[
"type"], $item_data[
"child"],
$html);
189 $output_html .= $this->renderer->getHTML();
191 $a_tpl->setVariable(
"CONTAINER_PAGE_CONTENT", $output_html);
204 $lng->loadLanguageModule(
'crs');
207 'tpl.container_list_item.html',
212 $tpl->setVariable(
'DIV_CLASS',
'ilContainerListItemOuter');
213 $tpl->setCurrentBlock(
'item_title_linked');
219 $tpl->setVariable(
'TXT_TITLE_LINKED',
$lng->txt(
'crs_link_hide_prev_sessions'));
224 $tpl->setVariable(
'TXT_TITLE_LINKED',
$lng->txt(
'crs_link_show_all_prev_sessions'));
233 $tpl->setVariable(
'TXT_TITLE_LINKED',
$lng->txt(
'crs_link_hide_next_sessions'));
238 $tpl->setVariable(
'TXT_TITLE_LINKED',
$lng->txt(
'crs_link_show_all_next_sessions'));
244 $tpl->parseCurrentBlock();
261 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
263 $tpl->setCurrentBlock(
'container_details_row');
264 $tpl->setVariable(
'TXT_DETAILS', $this->lng->txt(
'details'));
265 $tpl->parseCurrentBlock();
279 if (
$_GET[
'expand']) {
280 if (
$_GET[
'expand'] > 0) {
281 $_SESSION[
'sess'][
'expanded'][abs((
int)
$_GET[
'expand'])] = self::DETAILS_ALL;
283 $_SESSION[
'sess'][
'expanded'][abs((
int)
$_GET[
'expand'])] = self::DETAILS_TITLE;
287 include_once(
'./Modules/Session/classes/class.ilSessionAppointment.php');
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
getItemGroupsHTML($a_pos=0)
Get item groups HTML.
initRenderer()
Init container renderer.
getMainContent()
Get content HTML for main column.
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