ILIAS  release_7 Revision v7.30-3-g800a261c036
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. More...
 
 getMainContent ()
 Get content HTML for main column. More...
 
 __showMaterials ($a_tpl)
 Show Materials. More...
 
 getDetailsLevel ($a_session_id)
 get details level 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...
 
 renderCard ($a_item_data, $a_position=0, $a_force_icon=false, $a_pos_prefix="")
 Render card. More...
 
 insertPageEmbeddedBlocks ($a_output_html)
 Insert blocks into container page. More...
 
 getSingleTypeBlockAsynch ($type)
 Render single block. 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...
 

Protected Member Functions

 initDetails ()
 init details More...
 
- Protected Member Functions inherited from ilContainerContentGUI
 getViewMode ()
 Get view mode. More...
 
 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...
 
 hasForcedOrderByStartDate (string $type)
 

Protected Attributes

 $tabs
 
 $force_details
 
- Protected Attributes inherited from ilContainerContentGUI
 $tpl
 
 $ctrl
 
 $user
 
 $lng
 
 $access
 
 $plugin_admin
 
 $db
 
 $rbacsystem
 
 $settings
 
 $obj_definition
 
 $details_level = self::DETAILS_DEACTIVATED
 
 $renderer
 
 $log
 
 $view_mode
 

Additional Inherited Members

- Data Fields inherited from ilContainerContentGUI
const DETAILS_DEACTIVATED = 0
 
const DETAILS_TITLE = 1
 
const DETAILS_ALL = 2
 
const VIEW_MODE_LIST = 0
 
const VIEW_MODE_TILE = 1
 
 $container_gui
 
 $container_obj
 

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

◆ __construct()

ilContainerSimpleContentGUI::__construct (   $container_gui_obj)

Constructor.

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

47 {
48 global $DIC;
49
50 $this->lng = $DIC->language();
51 $this->tabs = $DIC->tabs();
52 $this->access = $DIC->access();
53 $this->user = $DIC->user();
54 parent::__construct($container_gui_obj);
55 $this->initDetails();
56 }
user()
Definition: user.php:4
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), initDetails(), and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ __showMaterials()

ilContainerSimpleContentGUI::__showMaterials (   $a_tpl)

Show Materials.

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

92 {
93 $ilAccess = $this->access;
95
96 $this->items = $this->getContainerObject()->getSubItems($this->getContainerGUI()->isActiveAdministrationPanel());
98
99 $this->initRenderer();
100
101 $output_html = $this->getContainerGUI()->getContainerPageHTML();
102
103 // get embedded blocks
104 if ($output_html != "") {
105 $output_html = $this->insertPageEmbeddedBlocks($output_html);
106 }
107
108 // item groups
109 $this->getItemGroupsHTML();
110
111 if (is_array($this->items["_all"])) {
112 $title = $this->getContainerObject()->filteredSubtree()
113 ? $lng->txt("cont_found_objects")
114 : $lng->txt("content");
115 $this->renderer->addCustomBlock("_all", $title);
116
117 $position = 1;
118 foreach ($this->items["_all"] as $k => $item_data) {
119 if (!$this->renderer->hasItem($item_data["child"])) {
120 $html = $this->renderItem($item_data, $position++, true);
121 if ($html != "") {
122 $this->renderer->addItemToBlock("_all", $item_data["type"], $item_data["child"], $html);
123 }
124 }
125 }
126 }
127
128 $output_html .= $this->renderer->getHTML();
129
130 $a_tpl->setVariable("CONTAINER_PAGE_CONTENT", $output_html);
131 }
initRenderer()
Init container renderer.
getContainerObject()
Get container object.
getContainerGUI()
Get container GUI object.
renderItem($a_item_data, $a_position=0, $a_force_icon=false, $a_pos_prefix="")
Render an item.
insertPageEmbeddedBlocks($a_output_html)
Insert blocks into container page.
getItemGroupsHTML($a_pos=0)
Get item groups HTML.
clearAdminCommandsDetermination()
cleaer administration commands determination

References ilContainerContentGUI\$access, ilContainerContentGUI\$lng, ilContainerContentGUI\clearAdminCommandsDetermination(), ilContainerContentGUI\getContainerGUI(), ilContainerContentGUI\getContainerObject(), ilContainerContentGUI\getItemGroupsHTML(), ilContainerContentGUI\initRenderer(), ilContainerContentGUI\insertPageEmbeddedBlocks(), and ilContainerContentGUI\renderItem().

Referenced by getMainContent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDetailsLevel()

ilContainerSimpleContentGUI::getDetailsLevel (   $a_session_id)

get details level

@access public

Parameters
int$a_session_id
Returns
int DEATAILS_LEVEL

Reimplemented from ilContainerContentGUI.

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

171 {
172 if ($this->getContainerGUI()->isActiveAdministrationPanel()) {
174 }
175 if (isset($_SESSION['sess']['expanded'][$a_session_id])) {
176 return $_SESSION['sess']['expanded'][$a_session_id];
177 }
178 if ($a_session_id == $this->force_details) {
179 return self::DETAILS_ALL;
180 } else {
181 return self::DETAILS_TITLE;
182 }
183 }
$_SESSION["AccountId"]

References $_SESSION, ilContainerContentGUI\DETAILS_ALL, ilContainerContentGUI\DETAILS_DEACTIVATED, ilContainerContentGUI\DETAILS_TITLE, and ilContainerContentGUI\getContainerGUI().

+ Here is the call graph for this function:

◆ getMainContent()

ilContainerSimpleContentGUI::getMainContent ( )

Get content HTML for main column.

Reimplemented from ilContainerContentGUI.

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

63 {
65 $ilTabs = $this->tabs;
66
67 // see bug #7452
68 // $ilTabs->setSubTabActive($this->getContainerObject()->getType().'_content');
69
70 include_once 'Services/Object/classes/class.ilObjectListGUIFactory.php';
71
72 $tpl = new ilTemplate(
73 "tpl.container_page.html",
74 true,
75 true,
76 "Services/Container"
77 );
78
79 // Feedback
80 // @todo
81 // $this->__showFeedBack();
82
83 $this->__showMaterials($tpl);
84
85 return $tpl->get();
86 }
special template class to simplify handling of ITX/PEAR

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

+ Here is the call graph for this function:

◆ initDetails()

ilContainerSimpleContentGUI::initDetails ( )
protected

init details

@access protected

Parameters

return

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

141 {
143
144 if ($_GET['expand']) {
145 if ($_GET['expand'] > 0) {
146 $_SESSION['sess']['expanded'][abs((int) $_GET['expand'])] = self::DETAILS_ALL;
147 } else {
148 $_SESSION['sess']['expanded'][abs((int) $_GET['expand'])] = self::DETAILS_TITLE;
149 }
150 }
151
152
153 if ($this->getContainerObject()->getType() == 'crs') {
154 include_once('./Modules/Session/classes/class.ilSessionAppointment.php');
156 $this->force_details = $session;
158 $this->force_details = $session;
159 }
160 }
161 }
$_GET["client_id"]
static lookupLastSessionByCourse($a_ref_id)
@access public
static lookupNextSessionByCourse($a_ref_id)
@access public
$ilUser
Definition: imgupload.php:18
$session

References $_GET, $_SESSION, $ilUser, $session, ilContainerContentGUI\$user, ilContainerContentGUI\DETAILS_ALL, ilContainerContentGUI\DETAILS_TITLE, ilContainerContentGUI\getContainerObject(), ilSessionAppointment\lookupLastSessionByCourse(), and ilSessionAppointment\lookupNextSessionByCourse().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $force_details

ilContainerSimpleContentGUI::$force_details
protected

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

◆ $tabs

ilContainerSimpleContentGUI::$tabs
protected

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

Referenced by getMainContent().


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