4 require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
57 $this->
user = $DIC->user();
58 $this->ctrl = $DIC->ctrl();
59 $this->tpl = $DIC[
"tpl"];
60 $this->toolbar = $DIC->toolbar();
61 $this->lng = $DIC->language();
62 $this->obj_definition = $DIC[
"objDefinition"];
63 $this->tree = $DIC->repositoryTree();
66 if ($a_user_id === null) {
69 $this->user_id = (int) $a_user_id;
76 $next_class =
$ilCtrl->getNextClass($this);
79 switch ($next_class) {
103 if (
sizeof($objects)) {
104 $ilToolbar->setFormAction(
$ilCtrl->getFormAction($this,
"listObjects"));
106 include_once
"Services/Form/classes/class.ilSelectInputGUI.php";
108 $ilToolbar->addStickyItem($sel,
true);
110 include_once
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
112 $button->setCaption(
"ok");
113 $button->setCommand(
"listObjects");
114 $ilToolbar->addStickyItem($button);
117 foreach (array_keys($objects) as
$type) {
119 if (!$objDefinition->isPlugin($type)) {
122 include_once(
"./Services/Component/classes/class.ilPlugin.php");
129 $sel_type = (string) $_REQUEST[
"type"];
131 $sel->setValue($sel_type);
134 $sel_type = array_shift($sel_type);
136 $ilCtrl->setParameter($this,
"type", $sel_type);
140 if (is_array($objects[$sel_type]) &&
sizeof($objects[$sel_type])) {
144 include_once
"Services/Object/classes/class.ilObjectOwnershipManagementTableGUI.php";
151 include_once
"Services/Object/classes/class.ilObjectOwnershipManagementTableGUI.php";
154 $tbl->writeFilterToSession();
160 include_once
"Services/Object/classes/class.ilObjectOwnershipManagementTableGUI.php";
172 $parent =
$tree->getParentId($a_ref_id);
173 $ilCtrl->setParameterByClass(
"ilRepositoryGUI",
"ref_id", $parent);
174 $ilCtrl->setParameterByClass(
"ilRepositoryGUI",
"item_ref_id", $a_ref_id);
175 $ilCtrl->setParameterByClass(
"ilRepositoryGUI",
"cmd", $a_cmd);
176 $ilCtrl->redirectByClass(
"ilRepositoryGUI");
179 protected function redirectCmd($a_ref_id, $a_class, $a_cmd = null)
185 $node =
$tree->getNodeData($a_ref_id);
186 $gui_class =
"ilObj" . $objDefinition->getClassName($node[
"type"]) .
"GUI";
187 $path = array(
"ilRepositoryGUI", $gui_class, $a_class);
190 if ($a_class ==
"ilExportGUI") {
194 switch ($node[
"type"]) {
197 $path = array(
"ilRepositoryGUI",
"ilGlossaryEditorGUI", $gui_class);
202 $path = array(
"ilRepositoryGUI", $gui_class);
205 $ilCtrl->setParameterByClass($gui_class,
"ref_id", $a_ref_id);
206 $ilCtrl->setParameterByClass($gui_class,
"cmd", $cmd);
211 $ilCtrl->setParameterByClass($a_class,
"ref_id", $a_ref_id);
212 $ilCtrl->setParameterByClass($a_class,
"cmd", $a_cmd);
216 public function delete()
218 $ref_id = (int) $_REQUEST[
"ownid"];
224 $ref_id = (int) $_REQUEST[
"ownid"];
230 $ref_id = (int) $_REQUEST[
"ownid"];
236 $ref_id = (int) $_REQUEST[
"ownid"];
237 $this->
redirectCmd($ref_id,
"ilPermissionGUI",
"owner");
static lookupTxtById($plugin_id, $lang_var)
static getAllOwnedRepositoryObjects($a_user_id)
Get all ids of objects user owns.
redirectCmd($a_ref_id, $a_class, $a_cmd=null)
Class ilObjectOwnershipManagementGUI.
Table for object role permissions.
redirectParentCmd($a_ref_id, $a_cmd)
static fixMissingTitles($a_type, array &$a_obj_title_map)
Try to fix missing object titles.
__construct($a_user_id=null)