3 declare(strict_types=1);
21 public function __construct(
object $a_parent_obj,
string $a_parent_cmd,
bool $a_select_parent =
false)
28 $this->select_parent = $a_select_parent;
31 if ($a_select_parent) {
43 $this->clickable_type = $a_val;
58 if ($this->select_parent) {
59 $this->
ctrl->setParameter($this->parent_obj,
"grp_act_par_ref_id", $a_node[
"child"]);
60 $url = $this->
ctrl->getLinkTarget($this->parent_obj,
"createGroup",
"",
true,
false);
61 return "il.Group.UserActions.initCreationForm(event, '$url'); return false;";
63 $this->
ctrl->setParameter($this->parent_obj,
"grp_act_ref_id", $a_node[
"child"]);
64 $url = $this->
ctrl->getLinkTarget($this->parent_obj,
"confirmAddUser",
"",
true,
false);
65 return "event.stopPropagation(); event.preventDefault(); il.Util.ajaxReplaceInner('$url', 'il_grp_action_modal_content'); return false;";
75 if ($this->select_parent) {
76 if ($this->
access->checkAccess(
"create",
"", (
int) $a_node[
"child"],
"grp")) {
80 $this->
access->checkAccess(
"manage_members",
"", (
int) $a_node[
"child"])) {
Explorer for selecting repository items.
setPathOpen($a_id)
Set node path to be opened.
setClickableType(string $a_val)
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.