3 declare(strict_types=1);
45 if (!$this->rbac_system->checkAccess(
"visible,read", $this->object->getRefId())) {
46 $this->error->raiseError($this->
lng->txt(
"permission_denied"), $this->error->MESSAGE);
51 $this->data[
"data"] = [];
52 $this->data[
"ctrl"] = [];
53 $this->data[
"cols"] = [
"type",
"title",
"last_change"];
55 $this->maxcount = count($this->data[
"data"]);
58 foreach ($this->data[
"data"] as
$key => $val) {
59 $this->data[
"ctrl"][
$key] = [
61 "obj_id" => $val[
"obj_id"],
62 "type" => $val[
"type"],
65 unset($this->data[
"data"][
$key][
"obj_id"]);
77 $next_class = $this->
ctrl->getNextClass($this);
78 $cmd = $this->
ctrl->getCmd();
81 switch ($next_class) {
82 case 'ilpermissiongui':
84 $this->
ctrl->forwardCommand($perm_gui);
100 if ($this->rbac_system->checkAccess(
'edit_permission', $this->object->getRefId())) {
101 $this->tabs_gui->addTarget(
103 $this->
ctrl->getLinkTarget($this,
"view"),
107 $this->tabs_gui->addTarget(
109 $this->
ctrl->getLinkTargetByClass([get_class($this),
'ilpermissiongui'],
"perm"),
110 [
"perm",
"info",
"owner"],
prepareOutput(bool $show_sub_objects=true)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjectGUI Basic methods of all Output classes.
viewObject()
list children of current object
__construct(Container $dic, ilPlugin $plugin)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
__construct($data, int $id, bool $call_by_reference)