diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-11 11:39:03 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-11 11:39:03 -0400 |
commit | 48513e8e42c72409109f21804964b7c54527f6c0 (patch) | |
tree | 3da33a98ff14cc34b9f78b08e824d6200a23b1fa /lib/folder.php | |
parent | c37d6ea2225e6b7ee93d2a294c33d81681fa843e (diff) |
changes namespace to OCA\News
Diffstat (limited to 'lib/folder.php')
-rw-r--r-- | lib/folder.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/folder.php b/lib/folder.php index 14951d57c..41577d844 100644 --- a/lib/folder.php +++ b/lib/folder.php @@ -10,16 +10,18 @@ * */ +namespace OCA\News; + /** * This class models a folder that contains feeds. */ -class OC_News_Folder extends OC_News_Collection { +class Folder extends Collection { private $name; private $children; private $parent; - public function __construct($name, $id = null, OC_News_Collection $parent = null){ + public function __construct($name, $id = null, Collection $parent = null){ $this->name = $name; if ($id !== null){ parent::__construct($id); @@ -45,7 +47,7 @@ class OC_News_Folder extends OC_News_Collection { return $this->parent->getId(); } - public function addChild(OC_News_Collection $child){ + public function addChild(Collection $child){ $this->children[] = $child; } |