diff options
Diffstat (limited to 'lib/folder.php')
-rw-r--r-- | lib/folder.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/folder.php b/lib/folder.php index a7036e8a7..f97960c7b 100644 --- a/lib/folder.php +++ b/lib/folder.php @@ -35,6 +35,7 @@ class OC_News_Folder { $this->name = $name; $this->parent = $parent; $this->feeds = array(); + $this->id = 0; } public function getName(){ @@ -50,7 +51,14 @@ class OC_News_Folder { } public function setId($id){ - $this->$id = $id; + $this->id = $id; + } + + public function getParentId(){ + if ($this->parent == null){ + return 0; + } + return $this->parent->getId(); } public function addFeed(OC_News_Feed $feed){ |