ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjWorkspaceFolder.php
Go to the documentation of this file.
1<?php
2
23{
26
27 public function __construct(
28 int $a_id = 0,
29 bool $a_reference = true
30 ) {
31 global $DIC;
32
33 parent::__construct($a_id, $a_reference);
34
35 $this->current_user = $DIC->user();
36 }
37
38 protected function initType(): void
39 {
40 $this->type = "wfld";
41 }
42
43 public function setFolderTree(ilWorkspaceTree $a_tree): void
44 {
45 $this->folder_tree = $a_tree;
46 }
47
48
52 public function getViewMode(): int
53 {
55 }
56
61 public function addAdditionalSubItemInformation(array &$a_item_data): void
62 {
63 }
64
65 public function gotItems(int $node_id): bool
66 {
67 $tree = new ilWorkspaceTree($this->current_user->getId());
68 $nodes = $tree->getChilds($node_id, "title");
69
70 if (sizeof($nodes)) {
71 return true;
72 }
73 return false;
74 }
75}
User class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFolderTree(ilWorkspaceTree $a_tree)
addAdditionalSubItemInformation(array &$a_item_data)
Add additional information to sub item, e.g.
getViewMode()
Get container view mode.
__construct(int $a_id=0, bool $a_reference=true)
Constructor.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilTree $tree
getChilds(int $a_node_id, string $a_order="", string $a_direction="ASC")
get child nodes of given node
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26