summaryrefslogtreecommitdiffstats
path: root/lib/folder.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/folder.php')
-rw-r--r--lib/folder.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/folder.php b/lib/folder.php
index 129110ae7..a7036e8a7 100644
--- a/lib/folder.php
+++ b/lib/folder.php
@@ -28,9 +28,13 @@ class OC_News_Folder {
private $name;
private $id;
private $feeds;
+ private $children;
+ private $parent;
- public function __construct($name){
+ public function __construct($name, $parent = null){
$this->name = $name;
+ $this->parent = $parent;
+ $this->feeds = array();
}
public function getName(){
@@ -41,4 +45,16 @@ class OC_News_Folder {
$this->name = $name;
}
+ public function getId(){
+ return $this->id;
+ }
+
+ public function setId($id){
+ $this->$id = $id;
+ }
+
+ public function addFeed(OC_News_Feed $feed){
+ $this->feeds[] = $feed;
+ }
+
} \ No newline at end of file