ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilContainerStartObjectsContentGUI Class Reference

Class ilContainerStartObjectsContentGUI. More...

+ Collaboration diagram for ilContainerStartObjectsContentGUI:

Public Member Functions

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

Protected Member Functions

 getPageHTML ()
 Render COPage.

Protected Attributes

 $start_object
 $enable_desktop
 $parent_gui

Detailed Description

Constructor & Destructor Documentation

ilContainerStartObjectsContentGUI::__construct ( ilContainer  $a_parent_obj)

Constructor.

Parameters
ilContainer$a_parent_obj

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

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

{
include_once "Services/Container/classes/class.ilContainerStartObjects.php";
$this->parent_gui = $a_parent_obj;
$this->start_object = new ilContainerStartObjects($a_parent_obj->getRefId(),
$a_parent_obj->getId());
}

+ Here is the call graph for this function:

Member Function Documentation

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 37 of file class.ilContainerStartObjectsContentGUI.php.

{
$this->enable_desktop = (bool)$a_value;
if($this->enable_desktop)
{
$this->parent_gui = $a_parent_gui;
}
}
ilContainerStartObjectsContentGUI::getHTML ( )

Get container start objects list (presentation)

Returns
string

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

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

{
global $tpl, $lng;
$lng->loadLanguageModule("crs");
include_once "Services/Container/classes/class.ilContainerStartObjectsContentTableGUI.php";
$this->parent_gui,
"",
$this->start_object,
$this->enable_desktop
);
$tpl->setContent(
$this->getPageHTML().
$tbl->getHTML()
);
}

+ Here is the call graph for this function:

ilContainerStartObjectsContentGUI::getPageHTML ( )
protected

Render COPage.

See Also
ilContainerGUI
Returns
string

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

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

Referenced by getHTML().

{
if (!$ilSetting->get("enable_cat_page_edit"))
{
return;
}
$page_id = $this->start_object->getObjId();
// if page does not exist, return nothing
include_once("./Services/COPage/classes/class.ilPageUtil.php");
if (!ilPageUtil::_existsAndNotEmpty("cstr", $page_id))
{
return;
}
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
$tpl->parseCurrentBlock();
include_once("./Services/Container/classes/class.ilContainerStartObjectsPageGUI.php");
$page_gui = new ilContainerStartObjectsPageGUI($page_id);
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$page_gui->setPresentationTitle("");
$page_gui->setTemplateOutput(false);
$page_gui->setHeader("");
return $page_gui->showPage();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilContainerStartObjectsContentGUI::$enable_desktop
protected

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

ilContainerStartObjectsContentGUI::$parent_gui
protected

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

ilContainerStartObjectsContentGUI::$start_object
protected

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


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