diff options
Diffstat (limited to 'lib/folder.php')
-rw-r--r-- | lib/folder.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/folder.php b/lib/folder.php index 6ed2103bb..93a37baa2 100644 --- a/lib/folder.php +++ b/lib/folder.php @@ -20,6 +20,7 @@ class Folder extends Collection { private $name; private $children; private $parent; + private $opened; public function __construct($name, $id = null, Collection $parent = null) { $this->name = $name; @@ -30,6 +31,9 @@ class Folder extends Collection { if ($parent !== null) { $this->parent = $parent; } + if($this->opened === null){ + $this->opened = true; + } } public function getName() { @@ -40,6 +44,14 @@ class Folder extends Collection { $this->name = $name; } + public function getOpened() { + return $this->opened; + } + + public function setOpened($opened) { + $this->opened = $opened; + } + public function getParentId() { if ($this->parent === null) { return 0; @@ -59,4 +71,6 @@ class Folder extends Collection { return $this->children; } + + }
\ No newline at end of file |