19 declare(strict_types=1);
34 public function __construct(
object $a_parent_obj,
string $a_parent_cmd,
bool $a_select_parent =
false)
41 $this->select_parent = $a_select_parent;
44 if ($a_select_parent) {
56 $this->clickable_type = $a_val;
71 if ($this->select_parent) {
72 $this->
ctrl->setParameter($this->parent_obj,
"grp_act_par_ref_id", $a_node[
"child"]);
73 $url = $this->
ctrl->getLinkTarget($this->parent_obj,
"createGroup",
"",
true,
false);
74 return "il.Group.UserActions.initCreationForm(event, '$url'); return false;";
76 $this->
ctrl->setParameter($this->parent_obj,
"grp_act_ref_id", $a_node[
"child"]);
77 $url = $this->
ctrl->getLinkTarget($this->parent_obj,
"confirmAddUser",
"",
true,
false);
78 return "event.stopPropagation(); event.preventDefault(); il.repository.core.fetchReplaceInner( document.getElementById('il_grp_action_modal_content'),'$url'); return false;";
88 if ($this->select_parent) {
89 if ($this->
access->checkAccess(
"create",
"", (
int) $a_node[
"child"],
"grp")) {
93 $this->
access->checkAccess(
"manage_members",
"", (
int) $a_node[
"child"])) {
setPathOpen($a_id)
Set node path to be opened.
setClickableType(string $a_val)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
isNodeClickable($a_node)
Is node clickable?
static _getObjectsByOperations( $a_obj_type, string $a_operation, int $a_usr_id=0, int $limit=0)
Get all objects of a specific type and check access This function is not recursive, instead it parses the serialized rbac_pa entries.
__construct(Container $dic, ilPlugin $plugin)
__construct(object $a_parent_obj, string $a_parent_cmd, bool $a_select_parent=false)
Constructor.