◆ __construct()
ilLicenseOverviewGUI::__construct |
( |
ilObjectGUI |
$a_parent_gui, |
|
|
|
$a_mode = self::LIC_MODE_REPOSITORY |
|
) |
| |
◆ executeCommand()
ilLicenseOverviewGUI::executeCommand |
( |
| ) |
|
- Returns
- bool
Definition at line 60 of file class.ilLicenseOverviewGUI.php.
61 {
62 global $rbacsystem,
$ilErr;
63
64
65 if (!$rbacsystem->checkAccess("read", $this->parent_gui->object->getRefId())) {
66 $ilErr->raiseError($this->lng->txt(
"permission_denied"),
$ilErr->MESSAGE);
67 }
68
69 $cmd = $this->ctrl->getCmd("showLicenses");
70 $this->$cmd();
71
72 return true;
73 }
References $ilErr.
◆ showLicenses()
ilLicenseOverviewGUI::showLicenses |
( |
| ) |
|
|
protected |
Definition at line 76 of file class.ilLicenseOverviewGUI.php.
77 {
78 include_once './Services/License/classes/class.ilLicenseOverviewTableGUI.php';
80
81 include_once "Services/UIComponent/Panel/classes/class.ilPanelGUI.php";
84 $panel->setBody('<div class="small">' . $this->lng->txt("used_licenses_explanation") . "<br/>"
85 . $this->lng->txt("remaining_licenses_explanation") . "<br/>" . $this->lng->txt("potential_accesses_explanation") . "</div>");
86
87 $this->tpl->setContent(
$tbl->getHTML() .
"<br />" . $panel->getHTML());
88 }
const PANEL_STYLE_SECONDARY
static getInstance()
Get instance.
References $tbl, ilPanelGUI\getInstance(), and ilPanelGUI\PANEL_STYLE_SECONDARY.
◆ $ctrl
ilLicenseOverviewGUI::$ctrl |
|
protected |
◆ $lng
ilLicenseOverviewGUI::$lng |
|
protected |
◆ $mode
ilLicenseOverviewGUI::$mode |
|
protected |
◆ $tpl
ilLicenseOverviewGUI::$tpl |
|
protected |
◆ LIC_MODE_ADMINISTRATION
const ilLicenseOverviewGUI::LIC_MODE_ADMINISTRATION = 1 |
◆ LIC_MODE_REPOSITORY
const ilLicenseOverviewGUI::LIC_MODE_REPOSITORY = 2 |
The documentation for this class was generated from the following file: