5require_once 
"./Services/Object/classes/class.ilObject2GUI.php";
 
   53    public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
 
   58        $this->lng = 
$DIC->language();
 
   59        $this->
help = $DIC[
"ilHelp"];
 
   60        $this->tpl = 
$DIC[
"tpl"];
 
   61        $this->
user = $DIC->user();
 
   62        $this->tabs = 
$DIC->tabs();
 
   63        $this->ctrl = 
$DIC->ctrl();
 
   64        $this->
ui = $DIC->ui();
 
   73        $this->requested_sortation = (int) 
$_GET[
"sortation"];
 
   75        $this->lng->loadLanguageModule(
"cntr");
 
   83    public function setTabs($a_show_settings = 
true)
 
   88        $ilHelp->setScreenIdComponent(
"wfld");
 
   90        $this->ctrl->setParameter($this, 
"wsp_id", $this->node_id);
 
   92        $this->tabs_gui->addTab(
 
   94            $lng->txt(
"wsp_tab_personal"),
 
   95            $this->ctrl->getLinkTarget($this, 
"")
 
   98        $this->ctrl->setParameterByClass(
 
   99            "ilObjWorkspaceRootFolderGUI",
 
  104        $this->tabs_gui->addTab(
 
  106            $lng->txt(
"wsp_tab_shared"),
 
  107            $this->ctrl->getLinkTargetByClass(
"ilObjWorkspaceRootFolderGUI", 
"shareFilter")
 
  110        $this->tabs_gui->addTab(
 
  112            $lng->txt(
"wsp_tab_ownership"),
 
  113            $this->ctrl->getLinkTargetByClass(array(
"ilObjWorkspaceRootFolderGUI", 
"ilObjectOwnershipManagementGUI"), 
"listObjects")
 
  116        if (!$this->ctrl->getNextClass($this)) {
 
  117            if (stristr($this->ctrl->getCmd(), 
"share")) {
 
  118                $this->tabs_gui->activateTab(
"share");
 
  120                $this->tabs_gui->activateTab(
"wsp");
 
  131        return (
bool) 
$_SESSION[
"il_wsp_admin_panel"];
 
  140        return $_SESSION[
"il_wsp_admin_panel"] = $active;
 
  153            $tabs->addSubTab(
"content", 
$lng->txt(
"view"), 
$ctrl->getLinkTarget($this, 
"disableAdminPanel"));
 
  154            $tabs->addSubTab(
"manage", 
$lng->txt(
"cntr_manage"), 
$ctrl->getLinkTarget($this, 
"enableAdminPanel"));
 
  158            $this->tabs_gui->addSubTab(
 
  160                $lng->txt(
"settings"),
 
  161                $this->ctrl->getLinkTarget($this, 
"edit")
 
  166            $tabs->activateSubTab(
"manage");
 
  168            $tabs->activateSubTab(
"content");
 
  178        $this->ctrl->redirect($this, 
"");
 
  187        $this->ctrl->redirect($this, 
"");
 
  192        $next_class = $this->ctrl->getNextClass($this);
 
  193        $cmd = $this->ctrl->getCmd();
 
  195        switch ($next_class) {
 
  196            case "ilcommonactiondispatchergui":
 
  197                include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
 
  199                $this->ctrl->forwardCommand($gui);
 
  202            case "ilobjectownershipmanagementgui":
 
  204                $this->tabs_gui->activateTab(
"ownership");
 
  205                include_once(
"Services/Object/classes/class.ilObjectOwnershipManagementGUI.php");
 
  207                $this->ctrl->forwardCommand($gui);
 
  212                if ($this->type != 
"wsrt") {
 
  247        unset(
$_SESSION[
'clipboard'][
'wsp2repo']);
 
  250        include_once 
"Services/Object/classes/class.ilObjectAddNewItemGUI.php";
 
  253        $gui->setCreationUrl($ilCtrl->getLinkTarget($this, 
"create"));
 
  256        include_once 
"Services/Object/classes/class.ilObjectListGUI.php";
 
  259            $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui", 
"ilnotegui"), 
"", 
"", 
true, 
false),
 
  260            $this->ctrl->getLinkTargetByClass(array(
"ilcommonactiondispatchergui", 
"iltagginggui"), 
"", 
"", 
true, 
false)
 
  263        include_once 
"Modules/WorkspaceFolder/classes/class.ilWorkspaceContentGUI.php";
 
  272            $this->objDefinition,
 
  274            $this->user_folder_settings
 
  276        $tpl->setContent($gui->render());
 
  278        include_once(
"./Services/PersonalWorkspace/classes/class.ilWorkspaceExplorerGUI.php");
 
  280        $exp->setTypeWhiteList(array(
"wsrt", 
"wfld"));
 
  281        $exp->setSelectableTypes(array(
"wsrt", 
"wfld"));
 
  282        $exp->setLinkToNodeClass(
true);
 
  283        $exp->setActivateHighlighting(
true);
 
  284        if ($exp->handleCommand()) {
 
  287        $left = $exp->getHTML();
 
  289        $tpl->setLeftNavContent($left);
 
  296        $this->tabs_gui->activateTab(
"wsp");
 
  297        $this->tabs_gui->activateSubTab(
"settings");
 
  304        $this->tabs_gui->activateTab(
"wsp");
 
  305        $this->tabs_gui->activateSubTab(
"settings");
 
  315        if (is_string($_REQUEST[
"item_ref_id"]) && $_REQUEST[
"item_ref_id"] != 
"") {
 
  316            return [(int) $_REQUEST[
"item_ref_id"]];
 
  317        } elseif (is_array(
$_POST[
"id"])) {
 
  318            return array_map(
function (
$i) {
 
  335        if (count($item_ids) == 0) {
 
  337            $this->ctrl->redirect($this);
 
  348        $repo_switch_allowed = 
true;
 
  349        foreach ($item_ids as $item_id) {
 
  350            foreach ($this->tree->getSubTree($this->tree->getNodeData($item_id)) as $node) {
 
  352                    $repo_switch_allowed = 
false;
 
  356                    $no_cut[$node[
"wsp_id"]] = $obj->getTitle();
 
  361        if (count($no_cut)) {
 
  362            ilUtil::sendFailure($this->lng->txt(
"msg_no_perm_cut") . 
" " . implode(
',', $no_cut), 
true);
 
  363            $this->ctrl->redirect($this);
 
  369        $_SESSION[
'paste_cut_wspexpand'] = array();
 
  370        foreach ((array) $this->tree->getPathId($this->node_id) as 
$node_id) {
 
  375        $_SESSION[
'clipboard'][
'source_ids'] = $item_ids;
 
  388        $_SESSION[
'clipboard'][
'wsp2repo'] = 
true;
 
  399        $_SESSION[
'clipboard'][
'wsp2repo'] = 
false;
 
  413        if (count($item_ids) == 0) {
 
  415            $this->ctrl->redirect($this);
 
  419        $this->ctrl->setParameter($this, 
"wsp_id", $this->node_id);
 
  421        $repo_switch_allowed = 
true;
 
  422        foreach ($item_ids as $item_id) {
 
  423            $node = $this->tree->getNodeData($item_id);
 
  425                $repo_switch_allowed = 
false;
 
  427            $current_node = $item_id;
 
  428            $owner = $this->tree->lookupOwner($current_node);
 
  429            if ($owner == 
$ilUser->getId()) {
 
  433                $_SESSION[
'paste_copy_wspexpand'] = array();
 
  434                foreach ((array) $this->tree->getPathId($item_id) as 
$node_id) {
 
  440                $this->ctrl->redirect($this);
 
  445        $_SESSION[
'clipboard'][
'source_ids'] = $item_ids;
 
  453        if (!$_REQUEST[
"item_ref_id"]) {
 
  454            $this->ctrl->redirect($this, 
"share");
 
  457        $current_node = $_REQUEST[
"item_ref_id"];
 
  460        if ($handler->checkAccess(
"read", 
"", $current_node)) {
 
  462            $_SESSION[
'clipboard'][
'source_ids'] = [$current_node];
 
  468            $perms = $handler->getPermissions($current_node);
 
  475        $this->ctrl->redirect($this, 
"share");
 
  485        $_SESSION[
'clipboard'][
'wsp2repo'] = 
true;
 
  496        $_SESSION[
'clipboard'][
'wsp2repo'] = 
false;
 
  508        $ilTabs->clearTargets();
 
  511            $ilTabs->setBackTarget(
 
  512                $this->lng->txt(
'back'),
 
  513                $this->ctrl->getLinkTarget($this)
 
  516            $ilTabs->setBackTarget(
 
  517                $this->lng->txt(
'back'),
 
  518                $this->ctrl->getLinkTarget($this, 
'share')
 
  526        $this->tpl->addBlockfile(
 
  529            'tpl.paste_into_multiple_objects.html',
 
  534        if (!
$_SESSION[
'clipboard'][
'wsp2repo']) {
 
  535            include_once(
"./Services/PersonalWorkspace/classes/class.ilWorkspaceExplorerGUI.php");
 
  537            $exp->setTypeWhiteList(array(
"wsrt", 
"wfld"));
 
  538            $exp->setSelectableTypes(array(
"wsrt", 
"wfld"));
 
  539            $exp->setSelectMode(
"node", 
false);
 
  540            if ($exp->handleCommand()) {
 
  543            $this->tpl->setVariable(
'OBJECT_TREE', $exp->getHTML());
 
  546            if ($repo_switch_allowed) {
 
  547                $switch_cmd = ($mode == 
"cut")
 
  548                    ? 
"cut_for_repository" 
  549                    : 
"copy_to_repository";
 
  550                $this->tpl->setCurrentBlock(
"switch_button");
 
  551                $this->tpl->setVariable(
'CMD_SWITCH', $switch_cmd);
 
  552                $this->tpl->setVariable(
'TXT_SWITCH', $this->lng->txt(
'wsp_switch_to_repo_tree'));
 
  553                $this->tpl->parseCurrentBlock();
 
  556                    $this->tpl->setCurrentBlock(
"hidden");
 
  557                    $this->tpl->setVariable(
'VALUE', $id);
 
  558                    $this->tpl->parseCurrentBlock();
 
  564            require_once 
'./Services/Object/classes/class.ilPasteIntoMultipleItemsExplorer.php';
 
  568                'paste_' . $mode . 
'_repexpand' 
  570            $exp->setTargetGet(
'ref_id');
 
  572            if (
$_GET[
'paste_' . $mode . 
'_repexpand'] == 
'') {
 
  573                $expanded = 
$tree->readRootId();
 
  575                $expanded = 
$_GET[
'paste_' . $mode . 
'_repexpand'];
 
  577            $exp->setCheckedItems(array((
int) 
$_POST[
'node']));
 
  578            $exp->setExpandTarget($this->ctrl->getLinkTarget($this, 
'showMoveIntoObjectTree'));
 
  579            $exp->setPostVar(
'node');
 
  580            $exp->setExpand($expanded);
 
  582            $this->tpl->setVariable(
'OBJECT_TREE', $exp->getOutput());
 
  584            if (in_array($mode, [
"copy", 
"cut"])) {
 
  585                $switch_cmd = ($mode == 
"cut")
 
  586                    ? 
"cut_for_workspace" 
  587                    : 
"copy_to_workspace";
 
  588                $this->tpl->setCurrentBlock(
"switch_button");
 
  589                $this->tpl->setVariable(
'CMD_SWITCH', $switch_cmd);
 
  590                $this->tpl->setVariable(
'TXT_SWITCH', $this->lng->txt(
'wsp_switch_to_wsp_tree'));
 
  591                $this->tpl->parseCurrentBlock();
 
  594                    $this->tpl->setCurrentBlock(
"hidden");
 
  595                    $this->tpl->setVariable(
'VALUE', $id);
 
  596                    $this->tpl->parseCurrentBlock();
 
  604        $this->tpl->setVariable(
'FORM_TARGET', 
'_top');
 
  605        $this->tpl->setVariable(
 
  607            $this->ctrl->getFormAction($this, 
'performPasteIntoMultipleObjects')
 
  610        $this->tpl->setVariable(
'CMD_SUBMIT', 
'performPasteIntoMultipleObjects');
 
  611        $this->tpl->setVariable(
'TXT_SUBMIT', $this->lng->txt(
'paste'));
 
  622        $source_node_ids = 
$_SESSION[
'clipboard'][
'source_ids'];
 
  623        $target_node_id = $_REQUEST[
'node'];
 
  625        if (!is_array($source_node_ids) || count($source_node_ids) == 0) {
 
  627            $this->ctrl->redirect($this);
 
  629        if (!$target_node_id) {
 
  631            $this->ctrl->redirect($this, 
"showMoveIntoObjectTree");
 
  634        if (!
$_SESSION[
'clipboard'][
'wsp2repo']) {
 
  635            $target_obj_id = $this->tree->lookupObjectId($target_node_id);
 
  642        foreach ($source_node_ids as $source_node_id) {
 
  644            $source_obj_id = $this->tree->lookupObjectId($source_node_id);
 
  649            if ($source_node_id == $target_node_id) {
 
  651                    $this->lng->txt(
'msg_obj_exists_in_folder'),
 
  652                    $source_object->getTitle(),
 
  653                    $target_object->getTitle()
 
  657            if (!in_array($source_object->getType(), array_keys($target_object->getPossibleSubObjects()))) {
 
  659                    $this->lng->txt(
'msg_obj_may_not_contain_objects_of_type'),
 
  660                    $target_object->getTitle(),
 
  661                    $source_object->getType()
 
  666            $owner = $this->tree->lookupOwner($source_node_id);
 
  667            if ($mode == 
"copy" && 
$ilUser->getId() == $owner && !$this->checkPermissionBool(
'copy', 
'', 
'', $source_node_id)) {
 
  668                $fail[] = $this->lng->txt(
'permission_denied');
 
  671            if (!
$_SESSION[
'clipboard'][
'wsp2repo']) {
 
  672                if ($mode == 
"cut" && $this->tree->isGrandChild($source_node_id, $target_node_id)) {
 
  674                        $this->lng->txt(
'msg_paste_object_not_in_itself'),
 
  675                        $source_object->getTitle()
 
  680            if (
$_SESSION[
'clipboard'][
'wsp2repo'] == 
true) {        
 
  682                if (!$ilAccess->checkAccess(
"create", 
"", $target_node_id, $source_object->getType())) {
 
  684                        $this->lng->txt(
'msg_no_perm_paste_object_in_folder'),
 
  685                        $source_object->getTitle(),
 
  686                        $target_object->getTitle()
 
  690                if (!$this->
checkPermissionBool(
'create', 
'', $source_object->getType(), $target_node_id)) {
 
  692                        $this->lng->txt(
'msg_no_perm_paste_object_in_folder'),
 
  693                        $source_object->getTitle(),
 
  694                        $target_object->getTitle()
 
  702            $this->ctrl->redirect($this);
 
  705        foreach ($source_node_ids as $source_node_id) {
 
  707            if (
$ilUser->getId() != $owner && $mode == 
"copy") {
 
  710            $node_data = $source_tree->getNodeData($source_node_id);
 
  714            if ($mode == 
"cut") {
 
  715                if (!
$_SESSION[
'clipboard'][
'wsp2repo']) {
 
  716                    $this->tree->moveTree($source_node_id, $target_node_id);
 
  718                    $parent_id = $this->tree->getParentId($source_node_id);
 
  722                    $this->tree->deleteReference($source_node_id);
 
  723                    $source_node = $this->tree->getNodeData($source_node_id);
 
  724                    $this->tree->deleteTree($source_node);
 
  727                    $source_object->createReference();
 
  728                    $source_object->putInTree($target_node_id);
 
  729                    $source_object->setPermissions($target_node_id);
 
  734            elseif ($mode == 
"copy") {
 
  735                include_once(
'Services/CopyWizard/classes/class.ilCopyWizardOptions.php');
 
  738                $this->wsp_log->debug(
"Copy ID: " . $copy_id . 
", Source Node: " . $source_node_id
 
  739                    . 
", source object: " . $source_object->getId());
 
  740                if (!
$_SESSION[
'clipboard'][
'wsp2repo']) {
 
  741                    $wizard_options->disableTreeCopy();
 
  743                $wizard_options->saveOwner(
$ilUser->getId());
 
  744                $wizard_options->saveRoot($source_node_id);
 
  745                $wizard_options->read();
 
  747                $new_obj = $source_object->cloneObject($target_node_id, $copy_id);
 
  749                if ($new_obj && !
$_SESSION[
'clipboard'][
'wsp2repo']) {
 
  750                    $this->wsp_log->debug(
"New Obj ID: " . $new_obj->getId());
 
  751                    $new_obj_node_id = $this->tree->insertObject($target_node_id, $new_obj->getId());
 
  752                    $this->
getAccessHandler()->setPermissions($target_node_id, $new_obj_node_id);
 
  755                $wizard_options->deleteAll();
 
  760        if (!
$_SESSION[
'clipboard'][
'wsp2repo']) {
 
  761            $redirect_node = $target_node_id;
 
  768        unset(
$_SESSION[
'clipboard'][
'source_ids']);
 
  769        unset(
$_SESSION[
'clipboard'][
'wsp2repo']);
 
  773        if ($mode == 
'cut') {
 
  774            ilUtil::sendSuccess($this->lng->txt(
'msg_cut_copied'), 
true);
 
  776            ilUtil::sendSuccess($this->lng->txt(
'msg_cloned'), 
true);
 
  779        $this->ctrl->setParameter($this, 
"wsp_id", $redirect_node);
 
  780        $this->ctrl->redirect($this);
 
  788    public function share($a_load_data = 
true)
 
  792        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceShareTableGUI.php";
 
  794        $tpl->setContent($tbl->getHTML());
 
  799        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceShareTableGUI.php";
 
  802        $tbl->writeFilterToSession();
 
  809        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceShareTableGUI.php";
 
  823        $tpl->setTitle(
$lng->txt(
"wsp_password_protected_resource"));
 
  824        $tpl->setDescription(
$lng->txt(
"wsp_password_protected_resource_info"));
 
  826        $ilTabs->clearTargets();
 
  827        $ilTabs->setBackTarget(
 
  829            $this->ctrl->getLinkTarget($this, 
"share")
 
  836        $tpl->setContent($form->getHTML());
 
  844        $this->ctrl->setParameter($this, 
"item_ref_id", $a_node_id);
 
  846        $object_data = $this->
getAccessHandler()->getObjectDataFromNode($a_node_id);
 
  848        include_once 
"Services/Form/classes/class.ilPropertyFormGUI.php";
 
  850        $form->setFormAction($ilCtrl->getFormAction($this, 
"checkPassword"));
 
  851        $form->setTitle(
$lng->txt(
"wsp_password_for") . 
": " . $object_data[
"title"]);
 
  859        $form->addCommandButton(
"checkPassword", 
$lng->txt(
"submit"));
 
  860        $form->addCommandButton(
"share", 
$lng->txt(
"cancel"));
 
  869        $node_id = $_REQUEST[
"item_ref_id"];
 
  871            $this->ctrl->redirect($this, 
"share");
 
  875        if ($form->checkInput()) {
 
  876            include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
 
  878            $input = md5($form->getInput(
"password"));
 
  883                $this->ctrl->setParameter($this, 
"item_ref_id", 
$node_id);
 
  884                $this->ctrl->redirect($this, 
"copyShared");
 
  886                $item = $form->getItemByPostVar(
"password");
 
  887                $item->setAlert(
$lng->txt(
"wsp_invalid_password"));
 
  892        $form->setValuesByPost();
 
  901    public static function _goto($a_target)
 
  903        $id = explode(
"_", $a_target);
 
  905        $_GET[
"baseClass"] = 
"ilsharedresourceGUI";
 
  906        $_GET[
"wsp_id"] = $id[0];
 
  907        include(
"ilias.php");
 
  918        include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceShareTableGUI.php";
 
  923        $tbl->writeFilterToSession();
 
  941        if (count($item_ids) == 0) {
 
  943            $this->ctrl->redirect($this, 
"");
 
  950        include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
 
  952        $cgui->setHeaderText(
$lng->txt(
"info_delete_sure") . 
"<br/>" .
 
  953            $lng->txt(
"info_delete_warning_no_trash"));
 
  955        $cgui->setFormAction($this->ctrl->getFormAction($this));
 
  956        $cgui->setCancel(
$lng->txt(
"cancel"), 
"cancelDeletion");
 
  957        $cgui->setConfirm(
$lng->txt(
"confirm"), 
"confirmedDelete");
 
  960            $children = $this->tree->getSubTree($this->tree->getNodeData(
$node_id));
 
  961            foreach ($children as $child) {
 
  970                    $this->ctrl->redirect($this);
 
  983        $tpl->setContent($cgui->getHTML());
 
  995        unset(
$_SESSION[
'clipboard'][
'source_ids']);
 
  996        unset(
$_SESSION[
'clipboard'][
'wsp2repo']);
 
  998        parent::cancelDelete();
 
 1016        $main_tpl = 
$DIC->ui()->mainTemplate();
 
 1018        $lng->loadLanguageModule(
'cntr');
 
 1022            $main_tpl->setPageFormAction($this->ctrl->getFormAction($this));
 
 1024            include_once 
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
 
 1026            $this->ctrl->setParameter($this, 
"type", 
"");
 
 1027            $this->ctrl->setParameter($this, 
"item_ref_id", 
"");
 
 1030                $this->lng->txt(
'paste_clipboard_items'),
 
 1035                $this->lng->txt(
'clear_clipboard'),
 
 1039            $main_tpl->addAdminPanelToolbar(
$toolbar, 
true, 
false);
 
 1042            $main_tpl->setPageFormAction($this->ctrl->getFormAction($this));
 
 1044            include_once 
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
 
 1046            $this->ctrl->setParameter($this, 
"type", 
"");
 
 1047            $this->ctrl->setParameter($this, 
"item_ref_id", 
"");
 
 1051            if ($this->object->gotItems($this->node_id)) {
 
 1054                    $lng->txt(
"actions")
 
 1057                    $this->lng->txt(
'delete_selected_items'),
 
 1061                    $this->lng->txt(
'move_selected_items'),
 
 1065                    $this->lng->txt(
'copy_selected_items'),
 
 1069                    $this->lng->txt(
'download_selected_items'),
 
 1106            $main_tpl->addAdminPanelToolbar(
 
 1108                ($this->object->gotItems($this->node_id) && !
$_SESSION[
"wsp_clipboard"]) ? 
true : 
false,
 
 1109                ($this->object->gotItems($this->node_id) && !
$_SESSION[
"wsp_clipboard"]) ? 
true : 
false 
 1113            if ($this->object->gotItems($this->node_id)) {
 
 1114                $main_tpl->setPageFormAction($this->ctrl->getFormAction($this));
 
 1125        $this->user_folder_settings->updateSortation($this->object->getId(), $this->requested_sortation);
 
 1126        $this->ctrl->redirect($this, 
"");
 
 1133        $initiated_by_folder_action = 
false;
 
 1135        if (
$_GET[
"item_ref_id"] != 
"") {
 
 1139        if (!isset(
$_POST[
"id"])) {
 
 1152            $this->ctrl->redirect($this, 
"");
 
 1158        if ($download_job->run()) {
 
 1159            ilUtil::sendSuccess($this->lng->txt(
'msg_bt_download_started'), 
true);
 
 1161        $this->ctrl->redirect($this);
 
 1166        return $bucket_title = ilUtil::getAsciiFilename($this->object->getTitle());
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
Confirmation screen class.
static _allocateCopyId()
Allocate a copy for further entries.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
Background task for downloads.
static getLogger($a_component_id)
Get component logger.
Class ilObjWorkspaceFolderGUI.
getType()
Functions that must be overwritten.
showMoveIntoObjectTree($repo_switch_allowed=false)
Move node: select target (via explorer)
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
Constructor.
getRequestItemIds()
Get requested item ids.
cut()
Move node preparation.
setTabs($a_show_settings=true)
initCreationForms($a_new_type)
Init creation froms.
setSortation()
Set sortation.
cut_for_workspace()
Move node preparation (to workspace)
disableAdminPanel()
Disable admin panel.
performPasteIntoMultipleObjects()
Move node: target has been selected, execute.
copy_to_repository()
Copy node preparation (to repository)
enableAdminPanel()
Enable admin panel.
cut_for_repository()
Move node preparation (to workspace)
deleteConfirmation()
Display delete confirmation form (workspace specific)
setAdministrationPanel(bool $active)
isActiveAdministrationPanel()
initPasswordForm($a_node_id)
addContentSubTabs($a_show_settings)
Add content subtabs.
passwordForm($a_node_id, $form=null)
listSharedResourcesOfOtherUser()
Entry point for awareness tool.
static _goto($a_target)
Deep link.
showAdministrationPanel()
show administration panel
copy_to_workspace()
Copy node preparation (to repository)
executeCommand()
execute command
copy()
Copy node preparation.
New implementation of ilObjectGUI.
getAccessHandler()
Get access handler.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_node_id=null)
Check permission.
Render add new item selector.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static getClassByType($a_obj_type)
Get class by type.
initCreateForm($a_new_type)
Init object creation form.
addHeaderAction()
Add header action menu.
static prepareJsLinks($a_redraw_url, $a_notes_url, $a_tags_url, $a_tpl=null)
Insert js/ajax links into template.
Class ilObjectOwnershipManagementGUI.
static _lookupObjId($a_id)
static _getIcon( $a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
const PERMISSION_ALL_PASSWORD
static keepSharedSessionPassword($a_node_id, $a_password)
static getSharedNodePassword($a_node_id)
Workspace content renderer.
Explorer for selecting a personal workspace item.
Stores user settings per workspace folder Table: wfld_user_setting (rw)
User settings for workspace folders.
Workspace share handler table GUI class.
Tree handler for personal workspace.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc