ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilContainerStartObjectsContentGUI Class Reference

Class ilContainerStartObjectsContentGUI. More...

+ Collaboration diagram for ilContainerStartObjectsContentGUI:

Public Member Functions

 __construct ($a_gui, ilContainer $a_parent_obj)
 Constructor. More...
 
 enableDesktop ($a_value, ilContainerGUI $a_parent_gui)
 Toggle add-to/remove-from-desktop. More...
 
 getHTML ()
 Get container start objects list (presentation) More...
 

Protected Member Functions

 getPageHTML ()
 Render COPage. More...
 

Protected Attributes

 $start_object
 
 $enable_desktop
 
 $parent_gui
 
 $parent_obj
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilContainerStartObjectsContentGUI::__construct (   $a_gui,
ilContainer  $a_parent_obj 
)

Constructor.

Parameters
ilContainer$a_parent_obj

Definition at line 24 of file class.ilContainerStartObjectsContentGUI.php.

25 {
26 include_once "Services/Container/classes/class.ilContainerStartObjects.php";
27 $this->parent_gui = $a_gui;
28 $this->parent_obj = $a_parent_obj;
29 $this->start_object = new ilContainerStartObjects($a_parent_obj->getRefId(),
30 $a_parent_obj->getId());
31 }
getRefId()
get reference id @access public
getId()
get object id @access public

References ilObject\getId(), and ilObject\getRefId().

+ Here is the call graph for this function:

Member Function Documentation

◆ enableDesktop()

ilContainerStartObjectsContentGUI::enableDesktop (   $a_value,
ilContainerGUI  $a_parent_gui 
)

Toggle add-to/remove-from-desktop.

Parameters
bool$a_value
ilContainerGUI$a_parent_gui

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

40 {
41 $this->enable_desktop = (bool)$a_value;
42
43 if($this->enable_desktop)
44 {
45 $this->parent_gui = $a_parent_gui;
46 }
47 }

◆ getHTML()

ilContainerStartObjectsContentGUI::getHTML ( )

Get container start objects list (presentation)

Returns
string

Definition at line 54 of file class.ilContainerStartObjectsContentGUI.php.

55 {
56 global $tpl, $lng;
57
58 $lng->loadLanguageModule("crs");
59
60 include_once "Services/Container/classes/class.ilContainerStartObjectsContentTableGUI.php";
62 $this->parent_gui,
63 "",
64 $this->start_object,
65 $this->enable_desktop
66 );
67 $tpl->setContent(
68 $this->getPageHTML().
69 $tbl->getHTML()
70 );
71 }
global $tpl
Definition: ilias.php:8
$tbl
Definition: example_048.php:81
global $lng
Definition: privfeed.php:17

References $lng, $tbl, $tpl, and getPageHTML().

+ Here is the call graph for this function:

◆ getPageHTML()

ilContainerStartObjectsContentGUI::getPageHTML ( )
protected

Render COPage.

See also
ilContainerGUI
Returns
string

Definition at line 79 of file class.ilContainerStartObjectsContentGUI.php.

80 {
81 global $tpl, $ilSetting, $ilUser;
82
83 if (!$ilSetting->get("enable_cat_page_edit"))
84 {
85 return;
86 }
87
88 $page_id = $this->start_object->getObjId();
89
90 // if page does not exist, return nothing
91 include_once("./Services/COPage/classes/class.ilPageUtil.php");
92 if (!ilPageUtil::_existsAndNotEmpty("cstr", $page_id))
93 {
94 return;
95 }
96
97 include_once("./Services/Style/Content/classes/class.ilObjStyleSheet.php");
98 $tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
100 $this->parent_obj->getStyleSheetId(), $this->parent_obj->getType())));
101 $tpl->setCurrentBlock("SyntaxStyle");
102 $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
104 $tpl->parseCurrentBlock();
105
106 include_once("./Services/Container/classes/class.ilContainerStartObjectsPageGUI.php");
107 $page_gui = new ilContainerStartObjectsPageGUI($page_id);
108
109 include_once("./Services/Style/Content/classes/class.ilObjStyleSheet.php");
111 $this->parent_obj->getStyleSheetId(), $this->parent_obj->getType()));
112
113 $page_gui->setPresentationTitle("");
114 $page_gui->setTemplateOutput(false);
115 $page_gui->setHeader("");
116 return $page_gui->showPage();
117 }
Container start objects page GUI class.
static getSyntaxStylePath()
get syntax style path
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static getContentStylePath($a_style_id)
get content style path
static _existsAndNotEmpty($a_parent_type, $a_id, $a_lang="-")
checks whether page exists and is not empty (may return true on some empty pages)
global $ilSetting
Definition: privfeed.php:17
$ilUser
Definition: imgupload.php:18

References $ilSetting, $ilUser, $tpl, ilPageUtil\_existsAndNotEmpty(), ilObjStyleSheet\getContentStylePath(), ilObjStyleSheet\getEffectiveContentStyleId(), and ilObjStyleSheet\getSyntaxStylePath().

Referenced by getHTML().

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

Field Documentation

◆ $enable_desktop

ilContainerStartObjectsContentGUI::$enable_desktop
protected

Definition at line 15 of file class.ilContainerStartObjectsContentGUI.php.

◆ $parent_gui

ilContainerStartObjectsContentGUI::$parent_gui
protected

Definition at line 16 of file class.ilContainerStartObjectsContentGUI.php.

◆ $parent_obj

ilContainerStartObjectsContentGUI::$parent_obj
protected

Definition at line 17 of file class.ilContainerStartObjectsContentGUI.php.

◆ $start_object

ilContainerStartObjectsContentGUI::$start_object
protected

Definition at line 14 of file class.ilContainerStartObjectsContentGUI.php.


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