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

Shows all items in one block. More...

+ Inheritance diagram for ilContainerSimpleContentGUI:
+ Collaboration diagram for ilContainerSimpleContentGUI:

Public Member Functions

 __construct ($container_gui_obj)
 Constructor.
 getMainContent ()
 Get content HTML for main column.
 __showMaterials ($a_tpl)
 Show Materials.
- Public Member Functions inherited from ilContainerContentGUI
 __construct (&$container_gui_obj)
 Constructor.
 getContainerObject ()
 Get container object.
 getContainerGUI ()
 Get container GUI object.
 setOutput ()
 Sets view output into column layout.
 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.

Additional Inherited Members

- Data Fields inherited from ilContainerContentGUI
const DETAILS_DEACTIVATED = 0
const DETAILS_TITLE = 1
const DETAILS_ALL = 2
 $container_gui
 $container_obj
- Protected Member Functions inherited from ilContainerContentGUI
 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 inherited from ilContainerContentGUI
 $details_level = self::DETAILS_DEACTIVATED

Detailed Description

Shows all items in one block.

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

Definition at line 33 of file class.ilContainerSimpleContentGUI.php.

Constructor & Destructor Documentation

ilContainerSimpleContentGUI::__construct (   $container_gui_obj)

Constructor.

Definition at line 39 of file class.ilContainerSimpleContentGUI.php.

{
parent::__construct($container_gui_obj);
}

Member Function Documentation

ilContainerSimpleContentGUI::__showMaterials (   $a_tpl)

Show Materials.

Definition at line 77 of file class.ilContainerSimpleContentGUI.php.

References $lng, $tpl, ilContainerContentGUI\addHeaderRow(), ilContainerContentGUI\addStandardRow(), ilContainerContentGUI\clearAdminCommandsDetermination(), ilContainerContentGUI\getContainerGUI(), ilContainerContentGUI\getContainerObject(), ilContainerContentGUI\insertPageEmbeddedBlocks(), ilContainerContentGUI\newBlockTemplate(), and ilContainerContentGUI\renderItem().

Referenced by getMainContent().

{
global $ilAccess, $lng;
$this->items = $this->getContainerObject()->getSubItems($this->getContainerGUI()->isActiveAdministrationPanel());
$output_html = $this->getContainerGUI()->getContainerPageHTML();
// get embedded blocks
if ($output_html != "")
{
$output_html = $this->insertPageEmbeddedBlocks($output_html);
}
$tpl = $this->newBlockTemplate();
if (is_array($this->items["_all"]))
{
// all rows
$item_html = array();
$position = 1;
foreach($this->items["_all"] as $k => $item_data)
{
if ($this->rendered_items[$item_data["child"]] !== true)
{
$html = $this->renderItem($item_data,$position++,true);
if ($html != "")
{
$item_html[] = $html;
}
}
}
// if we have at least one item, output the block
if (count($item_html) > 0)
{
$this->addHeaderRow($tpl, "", $lng->txt("content"));
foreach($item_html as $h)
{
$this->addStandardRow($tpl, $h);
}
}
}
$output_html .= $tpl->get();
$a_tpl->setVariable("CONTAINER_PAGE_CONTENT", $output_html);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilContainerSimpleContentGUI::getMainContent ( )

Get content HTML for main column.

Reimplemented from ilContainerContentGUI.

Definition at line 48 of file class.ilContainerSimpleContentGUI.php.

References $lng, $tpl, __showMaterials(), ilContainerContentGUI\getContainerGUI(), and ilContainerContentGUI\getContainerObject().

{
global $lng,$ilTabs;
$ilTabs->setSubTabActive($this->getContainerObject()->getType().'_content');
include_once './classes/class.ilObjectListGUIFactory.php';
$tpl = new ilTemplate ("tpl.container_page.html", true, true,
"Services/Container");
// Feedback
// @todo
// $this->__showFeedBack();
// @todo: Move this completely to GUI class?
$this->getContainerGUI()->adminCommands = $this->adminCommands;
$this->getContainerGUI()->showAdministrationPanel($tpl);
$this->getContainerGUI()->showPossibleSubObjects();
$this->getContainerGUI()->showPermanentLink($tpl);
return $tpl->get();
}

+ Here is the call graph for this function:


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