21 if($a_user_id === null)
23 $a_user_id = $ilUser->getId();
25 $this->user_id = (int)$a_user_id;
32 $next_class =$ilCtrl->getNextClass($this);
33 $cmd = $ilCtrl->getCmd();
58 include_once
"Services/Form/classes/class.ilSelectInputGUI.php";
60 $ilToolbar->addInputItem($sel,
true);
61 $ilToolbar->setFormAction($ilCtrl->getFormAction($this,
"listObjects"));
62 $ilToolbar->addFormButton($lng->txt(
"ok"),
"listObjects");
65 foreach(array_keys($objects) as $type)
68 if(!$objDefinition->isPlugin($type))
70 $options[$type] = $lng->txt(
"obj_".$type);
74 include_once(
"./Services/Component/classes/class.ilPlugin.php");
84 $sel->setValue($sel_type);
89 $sel_type = array_shift($sel_type);
91 $ilCtrl->setParameter($this,
"type", $sel_type);
94 include_once
"Services/Object/classes/class.ilObjectOwnershipManagementTableGUI.php";
96 $tpl->setContent($tbl->getHTML());
101 include_once
"Services/Object/classes/class.ilObjectOwnershipManagementTableGUI.php";
104 $tbl->writeFilterToSession();
110 include_once
"Services/Object/classes/class.ilObjectOwnershipManagementTableGUI.php";
121 $parent = $tree->getParentId($a_ref_id);
122 $ilCtrl->setParameterByClass(
"ilRepositoryGUI",
"ref_id", $parent);
123 $ilCtrl->setParameterByClass(
"ilRepositoryGUI",
"item_ref_id", $a_ref_id);
124 $ilCtrl->setParameterByClass(
"ilRepositoryGUI",
"cmd", $a_cmd);
125 $ilCtrl->redirectByClass(
"ilRepositoryGUI");
128 protected function redirectCmd($a_ref_id, $a_class, $a_cmd = null)
130 global
$ilCtrl, $tree, $objDefinition;
132 $node = $tree->getNodeData($a_ref_id);
133 $gui_class =
"ilObj".$objDefinition->getClassName($node[
"type"]).
"GUI";
134 $path = array(
"ilRepositoryGUI", $gui_class, $a_class);
137 if($a_class ==
"ilExportGUI")
141 $ilCtrl->getLinkTargetByClass(
$path);
145 switch($node[
"type"])
149 $path = array(
"ilRepositoryGUI",
"ilGlossaryEditorGUI", $gui_class);
154 $path = array(
"ilRepositoryGUI", $gui_class);
157 $ilCtrl->setParameterByClass($gui_class,
"ref_id", $a_ref_id);
158 $ilCtrl->setParameterByClass($gui_class,
"cmd",
$cmd);
159 $ilCtrl->redirectByClass(
$path);
163 $ilCtrl->setParameterByClass($a_class,
"ref_id", $a_ref_id);
164 $ilCtrl->setParameterByClass($a_class,
"cmd", $a_cmd);
165 $ilCtrl->redirectByClass(
$path);