◆ __construct()
ilLicenseOverviewGUI::__construct |
( |
ilObjectGUI |
$a_parent_gui, |
|
|
|
$a_mode = self::LIC_MODE_REPOSITORY |
|
) |
| |
◆ executeCommand()
ilLicenseOverviewGUI::executeCommand |
( |
| ) |
|
- Returns
- bool
Definition at line 59 of file class.ilLicenseOverviewGUI.php.
59 {
60 global $rbacsystem,
$ilErr;
61
62
63 if (!$rbacsystem->checkAccess("read", $this->parent_gui->object->getRefId())) {
64 $ilErr->raiseError($this->lng->txt(
"permission_denied"),
$ilErr->MESSAGE);
65 }
66
67 $cmd = $this->ctrl->getCmd(
"showLicenses");
69
70 return true;
71 }
References $cmd, and $ilErr.
◆ showLicenses()
ilLicenseOverviewGUI::showLicenses |
( |
| ) |
|
|
protected |
Definition at line 74 of file class.ilLicenseOverviewGUI.php.
74 {
75 include_once './Services/License/classes/class.ilLicenseOverviewTableGUI.php';
77
78 include_once "Services/UIComponent/Panel/classes/class.ilPanelGUI.php";
81 $panel->setBody('<div class="small">' . $this->lng->txt("used_licenses_explanation") . "<br/>"
82 . $this->lng->txt("remaining_licenses_explanation") . "<br/>" . $this->lng->txt("potential_accesses_explanation") . "</div>");
83
84 $this->tpl->setContent(
$tbl->getHTML() .
"<br />" . $panel->getHTML());
85 }
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: