diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-08 19:11:22 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-09-08 19:11:22 +0200 |
commit | 9fcfdae0c275eea9d3835552404a291b00043492 (patch) | |
tree | 6e9057078c88f2446c9ec67ab760388fc1a02253 /lib/folder.php | |
parent | 9ad5cc8fda71ac11a1ddd52554837596dc6aa43a (diff) |
remember collapsed folders, simplyfied css and js
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 |