ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLicenseOverviewGUI Class Reference
+ Collaboration diagram for ilLicenseOverviewGUI:

Public Member Functions

 ilLicenseOverviewGUI (&$a_parent_gui, $a_mode=self::LIC_MODE_REPOSITORY)
 Constructor public.
 executeCommand ()
 Execute a command (main entry point) public.
 showLicenses ()
 Show the license list public.

Data Fields

const LIC_MODE_ADMINISTRATION = 1
const LIC_MODE_REPOSITORY = 2

Detailed Description

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

Member Function Documentation

ilLicenseOverviewGUI::executeCommand ( )

Execute a command (main entry point) public.

Definition at line 42 of file class.ilLicenseOverviewGUI.php.

References $cmd, and $ilErr.

{
global $rbacsystem, $ilErr;
// access to all functions in this class are only allowed if read is granted
if (!$rbacsystem->checkAccess("read",$this->parent_gui->object->getRefId()))
{
$ilErr->raiseError($this->lng->txt("permission_denied"),$ilErr->MESSAGE);
}
$cmd = $this->ctrl->getCmd("showLicenses");
$this->$cmd();
return true;
}
ilLicenseOverviewGUI::ilLicenseOverviewGUI ( $a_parent_gui,
  $a_mode = self::LIC_MODE_REPOSITORY 
)

Constructor public.

Definition at line 26 of file class.ilLicenseOverviewGUI.php.

References $ilCtrl, $lng, and $tpl.

{
global $ilCtrl, $tpl, $lng;
$this->mode = $a_mode;
$this->ctrl =& $ilCtrl;
$this->tpl =& $tpl;
$this->lng =& $lng;
$this->lng->loadLanguageModule("license");
$this->parent_gui =& $a_parent_gui;
}
ilLicenseOverviewGUI::showLicenses ( )

Show the license list public.

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

References ilPanelGUI\getInstance(), and ilPanelGUI\PANEL_STYLE_SECONDARY.

{
include_once './Services/License/classes/class.ilLicenseOverviewTableGUI.php';
$tbl = new ilLicenseOverviewTableGUI($this, "showLicenses", $this->mode, $this->parent_gui);
include_once "Services/UIComponent/Panel/classes/class.ilPanelGUI.php";
$panel->setPanelStyle(ilPanelGUI::PANEL_STYLE_SECONDARY);
$panel->setBody('<div class="small">'.
$this->lng->txt("used_licenses_explanation")."<br/>".
$this->lng->txt("remaining_licenses_explanation")."<br/>".
$this->lng->txt("potential_accesses_explanation").
"</div>"
);
$this->tpl->setContent($tbl->getHTML()."<br />".$panel->getHTML());
}

+ Here is the call graph for this function:

Field Documentation

const ilLicenseOverviewGUI::LIC_MODE_ADMINISTRATION = 1
const ilLicenseOverviewGUI::LIC_MODE_REPOSITORY = 2

Definition at line 20 of file class.ilLicenseOverviewGUI.php.

Referenced by ilObjCourseGUI\executeCommand().


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