diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-28 14:27:18 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-28 14:27:18 -0400 |
commit | 762b4d89bc0876d8d514a21bf22babcb012cf298 (patch) | |
tree | b84a49d9edc109616c964b01d254dc7d81e597f9 /lib/folder.php | |
parent | 8ae896cac3de17b97001850132a6f9ea3cc54d0d (diff) |
decoupled fetcher and database mapper
Diffstat (limited to 'lib/folder.php')
-rw-r--r-- | lib/folder.php | 18 |
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 |