ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjWorkspaceFolder.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5require_once "Services/Object/classes/class.ilObject2.php";
6
16{
18
22 protected $current_user;
23
30 public function __construct($a_id = 0, $a_reference = true)
31 {
32 global $DIC;
33
34 parent::__construct($a_id, $a_reference);
35
36 $this->current_user = $DIC->user();
37 }
38
39 public function initType()
40 {
41 $this->type = "wfld";
42 }
43
44 public function setFolderTree($a_tree)
45 {
46 $this->folder_tree = &$a_tree;
47 }
48
57 public function doCloneObject($a_new_object, $a_target_id, $a_copy_id = 0)
58 {
59 }
60
69 public function cloneDependencies($a_target_id, $a_copy_id)
70 {
71 }
72
76 public function getViewMode()
77 {
79 }
80
85 public function addAdditionalSubItemInformation(&$a_item_data)
86 {
87 }
88
92 public function gotItems($node_id)
93 {
94 include_once "Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
95 $tree = new ilWorkspaceTree($this->current_user->getId());
96 $nodes = $tree->getChilds($node_id, "title");
97
98 if (sizeof($nodes)) {
99 return true;
100 }
101 return false;
102 }
103}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjWorkspaceFolder.
cloneDependencies($a_target_id, $a_copy_id)
Clone object dependencies (crs items, preconditions)
getViewMode()
Get container view mode.
__construct($a_id=0, $a_reference=true)
Constructor @access public.
addAdditionalSubItemInformation(&$a_item_data)
Add additional information to sub item, e.g.
doCloneObject($a_new_object, $a_target_id, $a_copy_id=0)
Clone folder.
Class ilObject2 This is an intermediate progress of ilObject class.
Tree handler for personal workspace.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc