4 include_once(
"./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
24 public function __construct($a_parent_obj, $a_parent_cmd, $a_select_parent =
false)
30 parent::__construct($a_parent_obj, $a_parent_cmd, null,
"",
"");
31 $this->select_parent = $a_select_parent;
34 if ($a_select_parent) {
39 foreach ($ref_ids as $ref_id) {
51 $this->clickable_type = $a_val;
61 return $this->clickable_type;
69 if ($this->select_parent) {
70 $this->ctrl->setParameter($this->parent_obj,
"grp_act_par_ref_id", $a_node[
"child"]);
71 $url = $this->ctrl->getLinkTarget($this->parent_obj,
"createGroup",
"",
true,
false);
72 return "il.Group.UserActions.initCreationForm(event, '$url'); return false;";
74 $this->ctrl->setParameter($this->parent_obj,
"grp_act_ref_id", $a_node[
"child"]);
75 $url = $this->ctrl->getLinkTarget($this->parent_obj,
"confirmAddUser",
"",
true,
false);
76 return "event.stopPropagation(); il.Util.ajaxReplaceInner('$url', 'il_grp_action_modal_content'); return false;";
96 if ($this->select_parent) {
97 if ($this->access->checkAccess(
"create",
"", $a_node[
"child"],
"grp")) {
102 $this->access->checkAccess(
"manage_members",
"", $a_node[
"child"])) {
__construct($a_parent_obj, $a_parent_cmd, $a_select_parent=false)
Constructor.
Explorer for selecting repository items.
static _getObjectsByOperations($a_obj_type, $a_operation, $a_usr_id=0, $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.
setPathOpen($a_id)
Set node path to be opened.
setClickableType($a_val)
Set clickable type.
getClickableType()
Get clickable type.
isNodeClickable($a_node)
Is node clickable?
getNodeOnClick($a_node)
Get onclick attribute.