ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
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 @access public. More...
 
 renderItemList ()
 Render items list. More...
 
- Public Member Functions inherited from ilContainerByTypeContentGUI
 __construct ($container_gui_obj)
 Constructor. More...
 
 getDetailsLevel ($a_session_id)
 get details level More...
 
 getMainContent ()
 Get content HTML for main column. More...
 
 renderItemList ()
 Render Items. More...
 
- Public Member Functions inherited from ilContainerContentGUI
 __construct (&$container_gui_obj)
 Constructor. More...
 
 getContainerObject ()
 Get container object. More...
 
 getContainerGUI ()
 Get container GUI object. More...
 
 setOutput ()
 Sets view output into column layout. More...
 
 getMainContent ()
 Get content HTML for main column, this one must be overwritten in derived classes. More...
 
 determinePageEmbeddedBlocks ($a_container_page_html)
 Determine all blocks that are embedded in the container page. More...
 
 addEmbeddedBlock ($block_type, $block_parameter)
 Add embedded block. More...
 
 getEmbeddedBlocks ()
 Get page embedded blocks. More...
 
 renderPageEmbeddedBlocks ()
 Render Page Embedded Blocks. More...
 
 renderItem ($a_item_data, $a_position=0, $a_force_icon=false, $a_pos_prefix="")
 Render an item. More...
 
 insertPageEmbeddedBlocks ($a_output_html)
 Insert blocks into container page. More...
 
 getGroupedObjTypes ()
 Get grouped repository object types. More...
 
 getIntroduction ()
 Get introduction. More...
 
 getItemGroupsHTML ($a_pos=0)
 Get item groups HTML. More...
 
 renderItemGroup ($a_itgr)
 Render item group. More...
 

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 ilContainerByTypeContentGUI
 initDetails ()
 init details More...
 
- Protected Member Functions inherited from ilContainerContentGUI
 getDetailsLevel ($a_item_id)
 get details level More...
 
 getRightColumnHTML ()
 Get HTML for right column. More...
 
 getCenterColumnHTML ()
 Get HTML for center column. More...
 
 initRenderer ()
 Init container renderer. More...
 
 clearAdminCommandsDetermination ()
 cleaer administration commands determination More...
 
 determineAdminCommands ($a_ref_id, $a_admin_com_included_in_list=false)
 determin admin commands More...
 
 getItemGUI ($item_data, $a_show_path=false)
 Get ListGUI object for item. More...
 
- Protected Attributes inherited from ilContainerByTypeContentGUI
 $force_details
 
- Protected Attributes inherited from ilContainerContentGUI
 $details_level = self::DETAILS_DEACTIVATED
 
 $renderer
 

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

◆ __construct()

ilContainerILincContentGUI::__construct (   $container_gui_obj)

Constructor @access public.

Reimplemented from ilContainerByTypeContentGUI.

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

41 {
42 parent::__construct($container_gui_obj);
43 }

Member Function Documentation

◆ renderItemList()

ilContainerILincContentGUI::renderItemList ( )

Render items list.

Returns
string html @access public

Reimplemented from ilContainerByTypeContentGUI.

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

52 {
53 global $objDefinition;
54
55 $html = '';
56
57 $class = $objDefinition->getClassName('icla');
58 $location = $objDefinition->getLocation('icla');
59 $full_class = 'ilObj'.$class.'ListGUI';
60 include_once $location.'/class.'.$full_class.'.php';
61
62 $tpl = $this->newBlockTemplate();
63 $first = true;
64
65 $item_html = array();
66
67 if(is_array($this->items['icla']))
68 {
69 foreach($this->items['icla'] as $key => $item)
70 {
71 $item_list_gui = new $full_class();
72 $item_list_gui->setContainerObject($this);
73 if($this->getContainerGUI()->isActiveAdministrationPanel())
74 {
75 $item_list_gui->enableCheckbox(true);
76 }
77
78 $html = $item_list_gui->getListItemHTML($this->getContainerObject()->getRefId(),
79 $key, $item['name'], $item['description'], $item);
80 if($html != '')
81 {
82 $item_html[] = array('html' => $html, 'item_id' => $this->getContainerObject()->getId());
83 }
84 }
85
86 // output block for resource type
87 if(count($item_html) > 0)
88 {
89 // separator row
90 if(!$first)
91 {
92 $this->addSeparatorRow($tpl);
93 }
94
95 $first = false;
96
97 // add a header for each resource type
98 $this->addHeaderRow($tpl, 'icla');
99 $this->resetRowType();
100
101 // content row
102 foreach($item_html as $item)
103 {
104 $this->addStandardRow($tpl, $item['html'], $this->getContainerObject()->getId());
105 }
106 }
107 }
108
109 $html = $tpl->get();
110 return $html;
111 }
global $tpl
Definition: ilias.php:8
$location
Definition: buildRTE.php:44
getContainerObject()
Get container object.
getContainerGUI()
Get container GUI object.

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

+ Here is the call graph for this function:

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