ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilContainerContentGUI Class Reference

Parent class of all container content GUIs. More...

+ Inheritance diagram for ilContainerContentGUI:
+ Collaboration diagram for ilContainerContentGUI:

Public Member Functions

 __construct (&$container_gui_obj)
 Constructor.
 getContainerObject ()
 Get container object.
 getContainerGUI ()
 Get container GUI object.
 setOutput ()
 Sets view output into column layout.
 getMainContent ()
 Get content HTML for main column, this one must be overwritten in derived classes.
 determinePageEmbeddedBlocks ($a_container_page_html)
 Determine all blocks that are embedded in the container page.
 addEmbeddedBlock ($block_type, $block_parameter)
 Add embedded block.
 getEmbeddedBlocks ()
 Get page embedded blocks.
 renderPageEmbeddedBlocks ()
 Render Page Embedded Blocks.
 renderItem ($a_item_data, $a_position=0, $a_force_icon=false)
 Render an item.
newBlockTemplate ()
 returns a new list block template
 addStandardRow (&$a_tpl, $a_html)
 add item row to template
 addHeaderRow ($a_tpl, $a_type="", $a_text="")
 Add header row to block template.
 resetRowType ()
 Reset row type (toggling background colors)
 insertPageEmbeddedBlocks ($a_output_html)
 Insert blocks into container page.
 addMessageRow (&$a_tpl, $a_message, $a_type)
 add message row
 addSeparatorRow (&$a_tpl)
 Add separator row between two blocks.
 getGroupedObjTypes ()
 Get grouped repository object types.
 getIntroduction ()
 Get introduction.

Data Fields

const DETAILS_DEACTIVATED = 0
const DETAILS_TITLE = 1
const DETAILS_ALL = 2
 $container_gui
 $container_obj

Protected Member Functions

 getDetailsLevel ($a_item_id)
 get details level
 getRightColumnHTML ()
 Get HTML for right column.
 getCenterColumnHTML ()
 Get HTML for center column.
 clearAdminCommandsDetermination ()
 cleaer administration commands determination
 determineAdminCommands ($a_ref_id, $a_admin_com_included_in_list=false)
 determin admin commands
 getItemGUI ($item_data, $a_show_path=false)
 Get ListGUI object for item.

Protected Attributes

 $details_level = self::DETAILS_DEACTIVATED

Private Member Functions

 __forwardToColumnGUI ()
 Get columngui output.

Detailed Description

Parent class of all container content GUIs.

These classes are responsible for displaying the content, i.e. the side column and main column and its subitems in container objects.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 35 of file class.ilContainerContentGUI.php.

Constructor & Destructor Documentation

ilContainerContentGUI::__construct ( $container_gui_obj)

Constructor.

Definition at line 51 of file class.ilContainerContentGUI.php.

{
$this->container_gui = $container_gui_obj;
$this->container_obj = $this->container_gui->object;
}

Member Function Documentation

ilContainerContentGUI::__forwardToColumnGUI ( )
finalprivate

Get columngui output.

Definition at line 186 of file class.ilContainerContentGUI.php.

References $ilCtrl, ilObject\_lookupObjId(), ilObject\_lookupType(), ilColumnGUI\getCmdSide(), getContainerGUI(), getContainerObject(), getMainContent(), ilColumnGUI\getScreenMode(), IL_COL_LEFT, IL_COL_RIGHT, and IL_SCREEN_SIDE.

Referenced by getCenterColumnHTML().

{
global $ilCtrl, $ilAccess;
include_once("Services/Block/classes/class.ilColumnGUI.php");
// this gets us the subitems we need in setColumnSettings()
// todo: this should be done in ilCourseGUI->getSubItems
//$this->course_obj->initCourseItemObject($this->getContainerObject()->getRefId());
$obj_id = ilObject::_lookupObjId($this->getContainerObject()->getRefId());
$obj_type = ilObject::_lookupType($obj_id);
if (!$ilCtrl->isAsynch())
{
//if ($column_gui->getScreenMode() != IL_SCREEN_SIDE)
{
// right column wants center
{
$column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
$this->getContainerGUI()->setColumnSettings($column_gui);
$html = $ilCtrl->forwardCommand($column_gui);
}
// left column wants center
{
$column_gui = new ilColumnGUI($obj_type, IL_COL_LEFT);
$this->getContainerGUI()->setColumnSettings($column_gui);
$html = $ilCtrl->forwardCommand($column_gui);
}
}
else
{
$html = $this->getMainContent();
}
}
return $html;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::addEmbeddedBlock (   $block_type,
  $block_parameter 
)

Add embedded block.

Parameters

Definition at line 317 of file class.ilContainerContentGUI.php.

Referenced by determinePageEmbeddedBlocks().

{
$this->embedded_block[$block_type][] = $block_parameter;
}

+ Here is the caller graph for this function:

ilContainerContentGUI::addHeaderRow (   $a_tpl,
  $a_type = "",
  $a_text = "" 
)

Add header row to block template.

Definition at line 526 of file class.ilContainerContentGUI.php.

References $ilSetting, $lng, $title, ilUtil\getImagePath(), and resetRowType().

Referenced by ilContainerSimpleContentGUI\__showMaterials(), ilContainerSessionsContentGUI\__showMaterials(), ilContainerILincContentGUI\renderItemList(), ilContainerByTypeContentGUI\renderItemList(), renderPageEmbeddedBlocks(), ilContainerObjectiveGUI\showMaterials(), and ilContainerObjectiveGUI\showObjectives().

{
global $lng, $ilSetting;
if ($a_text == "" && $a_type != "")
{
$title = $lng->txt("objs_".$a_type);
}
else
{
$title = $a_text;
}
if ($ilSetting->get("icon_position_in_lists") != "item_rows" &&
$a_type != "")
{
$icon = ilUtil::getImagePath("icon_".$a_type.".gif");
$a_tpl->setCurrentBlock("container_header_row_image");
$a_tpl->setVariable("HEADER_IMG", $icon);
$a_tpl->setVariable("HEADER_ALT", $title);
}
else
{
$a_tpl->setCurrentBlock("container_header_row");
}
$a_tpl->setVariable("BLOCK_HEADER_CONTENT", $title);
$a_tpl->parseCurrentBlock();
$a_tpl->touchBlock("container_row");
$this->resetRowType();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::addMessageRow ( $a_tpl,
  $a_message,
  $a_type 
)

add message row

Definition at line 596 of file class.ilContainerContentGUI.php.

References $lng.

Referenced by renderPageEmbeddedBlocks().

{
global $lng;
$this->cur_row_type = ($this->cur_row_type == "row_type_1")
? "row_type_2"
: "row_type_1";
$a_tpl->touchBlock($this->cur_row_type);
$type = $lng->txt("obj_".$a_type);
$a_message = str_replace("[type]", $type, $a_message);
$a_tpl->setVariable("ROW_NBSP", " ");
$a_tpl->setCurrentBlock("container_standard_row");
$a_tpl->setVariable("BLOCK_ROW_CONTENT",
$a_message);
$a_tpl->parseCurrentBlock();
$a_tpl->touchBlock("container_row");
}

+ Here is the caller graph for this function:

ilContainerContentGUI::addSeparatorRow ( $a_tpl)

Add separator row between two blocks.

Definition at line 621 of file class.ilContainerContentGUI.php.

Referenced by ilContainerSessionsContentGUI\__showMaterials(), ilContainerILincContentGUI\renderItemList(), and ilContainerByTypeContentGUI\renderItemList().

{
$a_tpl->touchBlock("separator_row");
$a_tpl->touchBlock("container_row");
}

+ Here is the caller graph for this function:

ilContainerContentGUI::addStandardRow ( $a_tpl,
  $a_html 
)

add item row to template

Definition at line 507 of file class.ilContainerContentGUI.php.

References $ilSetting, and $lng.

Referenced by ilContainerSimpleContentGUI\__showMaterials(), ilContainerSessionsContentGUI\__showMaterials(), ilContainerILincContentGUI\renderItemList(), ilContainerByTypeContentGUI\renderItemList(), renderPageEmbeddedBlocks(), ilContainerObjectiveGUI\showMaterials(), and ilContainerObjectiveGUI\showObjectives().

{
global $ilSetting, $lng;
$this->cur_row_type = ($this->cur_row_type == "row_type_1")
? "row_type_2"
: "row_type_1";
$a_tpl->touchBlock($this->cur_row_type);
$a_tpl->setCurrentBlock("container_standard_row");
$a_tpl->setVariable("BLOCK_ROW_CONTENT", $a_html);
$a_tpl->parseCurrentBlock();
$a_tpl->touchBlock("container_row");
}

+ Here is the caller graph for this function:

ilContainerContentGUI::clearAdminCommandsDetermination ( )
protected

cleaer administration commands determination

Definition at line 231 of file class.ilContainerContentGUI.php.

Referenced by ilContainerSimpleContentGUI\__showMaterials(), ilContainerSessionsContentGUI\__showMaterials(), ilContainerByTypeContentGUI\renderItemList(), ilContainerObjectiveGUI\showMaterials(), and ilContainerObjectiveGUI\showObjectives().

{
$this->adminCommands = false;
}

+ Here is the caller graph for this function:

ilContainerContentGUI::determineAdminCommands (   $a_ref_id,
  $a_admin_com_included_in_list = false 
)
protected

determin admin commands

Definition at line 239 of file class.ilContainerContentGUI.php.

References getContainerGUI().

Referenced by renderItem(), and ilContainerObjectiveGUI\renderObjective().

{
global $rbacsystem;
//echo "-".$a_admin_com_included_in_list."-";
if (!$this->adminCommands)
{
if (!$this->getContainerGUI()->isActiveAdministrationPanel())
{
if ($rbacsystem->checkAccess("delete", $a_ref_id))
{
$this->adminCommands = true;
}
}
else
{
$this->adminCommands = $a_admin_com_included_in_list;
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::determinePageEmbeddedBlocks (   $a_container_page_html)

Determine all blocks that are embedded in the container page.

Definition at line 297 of file class.ilContainerContentGUI.php.

References addEmbeddedBlock(), and getGroupedObjTypes().

Referenced by insertPageEmbeddedBlocks().

{
$type_grps = $this->getGroupedObjTypes();
// iterate all types
foreach ($type_grps as $type => $v)
{
// set template (overall or type specific)
if (is_int(strpos($a_container_page_html, "[list-".$type."]")))
{
$this->addEmbeddedBlock("type", $type);
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::getCenterColumnHTML ( )
protected

Get HTML for center column.

Definition at line 156 of file class.ilContainerContentGUI.php.

References $ilCtrl, $tpl, __forwardToColumnGUI(), and getMainContent().

Referenced by setOutput().

{
global $ilCtrl, $tpl;
$ilCtrl->saveParameterByClass("ilcolumngui", "col_return");
switch ($ilCtrl->getNextClass())
{
case "ilcolumngui":
$ilCtrl->setReturn($this->container_gui, "");
$html = $this->__forwardToColumnGUI();
break;
default:
$html = $this->getMainContent();
break;
}
return $html;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::getDetailsLevel (   $a_item_id)
protected

get details level

protected

Parameters
@return

Reimplemented in ilContainerObjectiveGUI, and ilContainerSessionsContentGUI.

Definition at line 64 of file class.ilContainerContentGUI.php.

References $details_level.

Referenced by renderItem().

{
}

+ Here is the caller graph for this function:

ilContainerContentGUI::getEmbeddedBlocks ( )

Get page embedded blocks.

Definition at line 325 of file class.ilContainerContentGUI.php.

{
return $this->embedded_block;
}
ilContainerContentGUI::getGroupedObjTypes ( )

Get grouped repository object types.

Returns
array array of object types

Definition at line 632 of file class.ilContainerContentGUI.php.

References getContainerObject().

Referenced by determinePageEmbeddedBlocks(), insertPageEmbeddedBlocks(), and ilContainerByTypeContentGUI\renderItemList().

{
global $objDefinition;
if (empty($this->type_grps))
{
$this->type_grps =
$objDefinition->getGroupedRepositoryObjectTypes($this->getContainerObject()->getType());
}
return $this->type_grps;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::getIntroduction ( )

Get introduction.

Definition at line 647 of file class.ilContainerContentGUI.php.

References $ilCtrl, $lng, $tpl, and ilUtil\getImagePath().

Referenced by ilContainerByTypeContentGUI\getMainContent().

{
global $ilUser, $lng, $ilCtrl;
$lng->loadLanguageModule("rep");
$tpl = new ilTemplate("tpl.rep_intro.html", true, true, "Services/Repository");
$tpl->setVariable("IMG_REP_LARGE", ilUtil::getImagePath("icon_root_xxl.gif"));
$tpl->setVariable("TXT_WELCOME", $lng->txt("rep_intro"));
$tpl->setVariable("TXT_INTRO_1", $lng->txt("rep_intro1"));
$tpl->setVariable("TXT_INTRO_2", $lng->txt("rep_intro2"));
$tpl->setVariable("TXT_INTRO_3", sprintf($lng->txt("rep_intro3"), $lng->txt("add")));
$tpl->setVariable("TXT_INTRO_4", sprintf($lng->txt("rep_intro4"), $lng->txt("cat_add")));
$tpl->setVariable("TXT_INTRO_5", $lng->txt("rep_intro5"));
$tpl->setVariable("TXT_INTRO_6", $lng->txt("rep_intro6"));
return $tpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::getItemGUI (   $item_data,
  $a_show_path = false 
)
protected

Get ListGUI object for item.

Definition at line 264 of file class.ilContainerContentGUI.php.

References ilObjectListGUIFactory\_getListGUIByType(), and getContainerGUI().

Referenced by renderItem(), and ilContainerObjectiveGUI\renderObjective().

{
include_once './classes/class.ilObjectListGUIFactory.php';
// get item list gui object
if (!is_object ($this->list_gui[$item_data["type"]]))
{
$item_list_gui =& ilObjectListGUIFactory::_getListGUIByType($item_data["type"]);
$item_list_gui->setContainerObject($this->getContainerGUI());
$this->list_gui[$item_data["type"]] =& $item_list_gui;
}
else
{
$item_list_gui =& $this->list_gui[$item_data["type"]];
}
// show administration command buttons (or not)
if (!$this->getContainerGUI()->isActiveAdministrationPanel())
{
$item_list_gui->enableDelete(false);
$item_list_gui->enableLink(false);
$item_list_gui->enableCut(false);
}
// container specific modifications
$this->getContainerGUI()->modifyItemGUI($item_list_gui, $item_data, $a_show_path);
return $item_list_gui;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::getMainContent ( )
abstract

Get content HTML for main column, this one must be overwritten in derived classes.

Reimplemented in ilContainerSessionsContentGUI, ilContainerObjectiveGUI, ilContainerSimpleContentGUI, and ilContainerByTypeContentGUI.

Referenced by __forwardToColumnGUI(), and getCenterColumnHTML().

+ Here is the caller graph for this function:

ilContainerContentGUI::getRightColumnHTML ( )
protected

Get HTML for right column.

Definition at line 116 of file class.ilContainerContentGUI.php.

References $ilCtrl, $lng, ilObject\_lookupObjId(), ilObject\_lookupType(), getContainerGUI(), getContainerObject(), IL_COL_RIGHT, IL_SCREEN_FULL, and IL_SCREEN_SIDE.

Referenced by setOutput().

{
global $ilUser, $lng, $ilCtrl, $ilAccess;
$ilCtrl->saveParameterByClass("ilcolumngui", "col_return");
$obj_id = ilObject::_lookupObjId($this->getContainerObject()->getRefId());
$obj_type = ilObject::_lookupType($obj_id);
include_once("Services/Block/classes/class.ilColumnGUI.php");
$column_gui = new ilColumnGUI($obj_type, IL_COL_RIGHT);
if ($column_gui->getScreenMode() == IL_SCREEN_FULL)
{
return "";
}
$this->getContainerGUI()->setColumnSettings($column_gui);
if ($ilCtrl->getNextClass() == "ilcolumngui" &&
$column_gui->getCmdSide() == IL_COL_RIGHT &&
$column_gui->getScreenMode() == IL_SCREEN_SIDE)
{
$html = $ilCtrl->forwardCommand($column_gui);
}
else
{
if (!$ilCtrl->isAsynch())
{
$html = $ilCtrl->getHTML($column_gui);
}
}
return $html;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::insertPageEmbeddedBlocks (   $a_output_html)

Insert blocks into container page.

Definition at line 572 of file class.ilContainerContentGUI.php.

References determinePageEmbeddedBlocks(), getGroupedObjTypes(), and renderPageEmbeddedBlocks().

Referenced by ilContainerSimpleContentGUI\__showMaterials(), ilContainerSessionsContentGUI\__showMaterials(), ilContainerByTypeContentGUI\renderItemList(), ilContainerObjectiveGUI\showMaterials(), and ilContainerObjectiveGUI\showObjectives().

{
$this->determinePageEmbeddedBlocks($a_output_html);
$this->renderPageEmbeddedBlocks($this->items);
$type_grps = $this->getGroupedObjTypes();
// iterate all types
foreach ($type_grps as $type => $v)
{
// set template (overall or type specific)
if (is_int(strpos($a_output_html, "[list-".$type."]")))
{
$a_output_html = eregi_replace("\[list-".$type."\]",
$this->rendered_block["type"][$type], $a_output_html);
}
}
return $a_output_html;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilContainerContentGUI::newBlockTemplate ( )

returns a new list block template

private

Returns
object block template

Definition at line 496 of file class.ilContainerContentGUI.php.

References $tpl.

Referenced by ilContainerSimpleContentGUI\__showMaterials(), ilContainerSessionsContentGUI\__showMaterials(), ilContainerILincContentGUI\renderItemList(), ilContainerByTypeContentGUI\renderItemList(), renderPageEmbeddedBlocks(), ilContainerObjectiveGUI\showMaterials(), and ilContainerObjectiveGUI\showObjectives().

{
$tpl = new ilTemplate ("tpl.container_list_block.html", true, true,
"Services/Container");
$this->cur_row_type = "row_type_1";
return $tpl;
}

+ Here is the caller graph for this function:

ilContainerContentGUI::renderItem (   $a_item_data,
  $a_position = 0,
  $a_force_icon = false 
)

Render an item.

Parameters
arrayitem data
Returns
string item HTML

Definition at line 386 of file class.ilContainerContentGUI.php.

References $ilSetting, ilContainerSorting\_getInstance(), determineAdminCommands(), getContainerGUI(), getContainerObject(), getDetailsLevel(), getItemGUI(), and ilContainer\SORT_MANUAL.

Referenced by ilContainerSimpleContentGUI\__showMaterials(), ilContainerSessionsContentGUI\__showMaterials(), ilContainerByTypeContentGUI\renderItemList(), renderPageEmbeddedBlocks(), and ilContainerObjectiveGUI\showMaterials().

{
global $ilSetting,$ilAccess;
// Pass type, obj_id and tree to checkAccess method to improve performance
if(!$ilAccess->checkAccess('visible','',$a_item_data['ref_id'],$a_item_data['type'],$a_item_data['obj_id'],$a_item_data['tree']))
{
return '';
}
$item_list_gui = $this->getItemGUI($a_item_data);
if ($ilSetting->get("icon_position_in_lists") == "item_rows" ||
$a_item_data["type"] == "sess" || $a_force_icon)
{
$item_list_gui->enableIcon(true);
}
if ($this->getContainerGUI()->isActiveAdministrationPanel())
{
$item_list_gui->enableCheckbox(true);
if ($this->getContainerObject()->getOrderType() == ilContainer::SORT_MANUAL)
{
$item_list_gui->setPositionInputField("[".$a_item_data["ref_id"]."]",
sprintf('%.1f', $a_position));
}
}
if($a_item_data['type'] == 'sess' and get_class($this) != 'ilContainerObjectiveGUI')
{
switch($this->getDetailsLevel($a_item_data['obj_id']))
{
case self::DETAILS_TITLE:
$item_list_gui->enableExpand(true);
$item_list_gui->setExpanded(false);
$item_list_gui->enableDescription(false);
$item_list_gui->enableProperties(false);
break;
case self::DETAILS_ALL:
$item_list_gui->enableExpand(true);
$item_list_gui->setExpanded(true);
$item_list_gui->enableDescription(true);
$item_list_gui->enableProperties(true);
break;
default:
$item_list_gui->enableExpand(false);
$item_list_gui->enableDescription(true);
$item_list_gui->enableProperties(true);
break;
}
}
// show subitems
if ($a_item_data['type'] == 'sess' and $this->getDetailsLevel($a_item_data['obj_id']) != self::DETAILS_TITLE)
{
$pos = 1;
include_once('./Services/Container/classes/class.ilContainerSorting.php');
$items = $this->getContainerObject()->items_obj->getItemsByEvent($a_item_data['obj_id']);
$items = ilContainerSorting::_getInstance($this->getContainerObject()->getId())->sortSubItems('sess',$a_item_data['obj_id'],$items);
foreach($items as $item)
{
// TODO: this should be removed and be handled by if(strlen($sub_item_html))
// see mantis: 0003944
if(!$ilAccess->checkAccess('visible','',$item['ref_id']))
{
continue;
}
$item_list_gui2 = $this->getItemGUI($item);
$item_list_gui2->enableIcon(true);
$item_list_gui2->enableItemDetailLinks(false);
if ($this->getContainerGUI()->isActiveAdministrationPanel())
{
$item_list_gui2->enableCheckbox(true);
if ($this->getContainerObject()->getOrderType() == ilContainer::SORT_MANUAL)
{
$item_list_gui2->setPositionInputField("[sess][".$a_item_data['obj_id']."][".$item["ref_id"]."]",
sprintf('%.1f', $pos));
$pos++;
}
}
$sub_item_html = $item_list_gui2->getListItemHTML($item['ref_id'],
$item['obj_id'], $item['title'], $item['description']);
$this->determineAdminCommands($item["ref_id"],$item_list_gui2->adminCommandsIncluded());
if(strlen($sub_item_html))
{
$item_list_gui->addSubItemHTML($sub_item_html);
}
}
}
$html = $item_list_gui->getListItemHTML($a_item_data['ref_id'],
$a_item_data['obj_id'], $a_item_data['title'], $a_item_data['description']);
$this->determineAdminCommands($a_item_data["ref_id"],
$item_list_gui->adminCommandsIncluded());
return $html;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::renderPageEmbeddedBlocks ( )

Render Page Embedded Blocks.

Definition at line 333 of file class.ilContainerContentGUI.php.

References $lng, $tpl, addHeaderRow(), addMessageRow(), addStandardRow(), newBlockTemplate(), and renderItem().

Referenced by insertPageEmbeddedBlocks().

{
global $lng;
// first all type specific blocks
if (is_array($this->embedded_block["type"]))
{
// all embedded typed blocks
foreach ($this->embedded_block["type"] as $k => $type)
{
if ($this->rendered_block["type"][$type] == "")
{
if (is_array($this->items[$type]))
{
$tpl = $this->newBlockTemplate();
// the header
$this->addHeaderRow($tpl, $type);
// all rows
$item_rendered = false;
$position = 1;
foreach($this->items[$type] as $k => $item_data)
{
$html = $this->renderItem($item_data,$position++);
if ($html != "")
{
$this->addStandardRow($tpl, $html);
$item_rendered = true;
$this->rendered_items[$item_data["child"]] = true;
}
}
// if no item has been rendered, add message
if (!$item_rendered)
{
$this->addMessageRow($tpl, $lng->txt("msg_no_type_accessible"), $type);
}
$this->rendered_block["type"][$type] = $tpl->get();
}
}
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerContentGUI::resetRowType ( )

Reset row type (toggling background colors)

Definition at line 564 of file class.ilContainerContentGUI.php.

Referenced by addHeaderRow(), and ilContainerILincContentGUI\renderItemList().

{
$this->cur_row_type = "";
}

+ Here is the caller graph for this function:

ilContainerContentGUI::setOutput ( )

Sets view output into column layout.

This method sets the output of the right and main column in the global standard template.

Definition at line 95 of file class.ilContainerContentGUI.php.

References $tpl, ilChangeEvent\_isActive(), ilObject\_lookupObjId(), ilChangeEvent\_recordReadEvent(), getCenterColumnHTML(), getContainerObject(), and getRightColumnHTML().

{
global $tpl;
// BEGIN ChangeEvent: record read event.
require_once('Services/Tracking/classes/class.ilChangeEvent.php');
{
global $ilUser;
$obj_id = ilObject::_lookupObjId($this->getContainerObject()->getRefId());
ilChangeEvent::_recordReadEvent($obj_id, $ilUser->getId());
}
// END ChangeEvent: record read event.
$tpl->setContent($this->getCenterColumnHTML());
$tpl->setRightContent($this->getRightColumnHTML());
}

+ Here is the call graph for this function:

Field Documentation

ilContainerContentGUI::$container_gui

Definition at line 44 of file class.ilContainerContentGUI.php.

Referenced by getContainerGUI().

ilContainerContentGUI::$container_obj

Definition at line 45 of file class.ilContainerContentGUI.php.

Referenced by getContainerObject().

ilContainerContentGUI::$details_level = self::DETAILS_DEACTIVATED
protected
const ilContainerContentGUI::DETAILS_DEACTIVATED = 0

The documentation for this class was generated from the following file: