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

Shows all items grouped by type. More...

+ Inheritance diagram for ilContainerILincContentGUI:
+ Collaboration diagram for ilContainerILincContentGUI:

Public Member Functions

 __construct ($container_gui_obj)
 Constructor public.
 renderItemList ()
 Render items list.
- Public Member Functions inherited from ilContainerByTypeContentGUI
 getMainContent ()
 Get content HTML for main column.
- 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 grouped by type.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de
Version
$Id$

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

Constructor & Destructor Documentation

ilContainerILincContentGUI::__construct (   $container_gui_obj)

Constructor public.

Reimplemented from ilContainerByTypeContentGUI.

Definition at line 40 of file class.ilContainerILincContentGUI.php.

{
parent::__construct($container_gui_obj);
}

Member Function Documentation

ilContainerILincContentGUI::renderItemList ( )

Render items list.

Returns
string html public

Reimplemented from ilContainerByTypeContentGUI.

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

References $location, $tpl, ilContainerContentGUI\addHeaderRow(), ilContainerContentGUI\addSeparatorRow(), ilContainerContentGUI\addStandardRow(), ilContainerContentGUI\getContainerGUI(), ilContainerContentGUI\getContainerObject(), ilContainerContentGUI\newBlockTemplate(), and ilContainerContentGUI\resetRowType().

{
global $objDefinition;
$html = '';
$class = $objDefinition->getClassName('icla');
$location = $objDefinition->getLocation('icla');
$full_class = 'ilObj'.$class.'ListGUI';
include_once $location.'/class.'.$full_class.'.php';
$tpl = $this->newBlockTemplate();
$first = true;
$item_html = array();
if(is_array($this->items['icla']))
{
foreach($this->items['icla'] as $key => $item)
{
$item_list_gui = new $full_class();
$item_list_gui->setContainerObject($this);
if($this->getContainerGUI()->isActiveAdministrationPanel())
{
$item_list_gui->enableCheckbox(true);
}
$html = $item_list_gui->getListItemHTML($this->getContainerObject()->getRefId(),
$key, $item['name'], $item['description'], $item);
if($html != '')
{
$item_html[] = array('html' => $html, 'item_id' => $this->getContainerObject()->getId());
}
}
// output block for resource type
if(count($item_html) > 0)
{
// separator row
if(!$first)
{
}
$first = false;
// add a header for each resource type
$this->addHeaderRow($tpl, 'icla');
$this->resetRowType();
// content row
foreach($item_html as $item)
{
$this->addStandardRow($tpl, $item['html'], $this->getContainerObject()->getId());
}
}
}
$html = $tpl->get();
return $html;
}

+ Here is the call graph for this function:


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