diff options
Diffstat (limited to 'lib/folder.php')
-rw-r--r-- | lib/folder.php | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/lib/folder.php b/lib/folder.php deleted file mode 100644 index 2e3c96a7c..000000000 --- a/lib/folder.php +++ /dev/null @@ -1,76 +0,0 @@ -<?php -/** -* ownCloud - News app -* -* @author Alessandro Cosentino -* Copyright (c) 2012 - Alessandro Cosentino <cosenal@gmail.com> -* -* This file is licensed under the Affero General Public License version 3 or later. -* See the COPYING-README file -* -*/ - -namespace OCA\News; - -/** - * This class models a folder that contains feeds. - */ -class Folder extends Collection { - - private $name; - private $children; - private $parent; - private $opened; - - public function __construct($name, $id = null, Collection $parent = null) { - $this->name = $name; - if ($id !== null) { - parent::__construct($id); - } - $this->children = array(); - if ($parent !== null) { - $this->parent = $parent; - } - if($this->opened === null){ - $this->opened = true; - } - } - - public function getName() { - return $this->name; - } - - public function setName($name) { - $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; - } - return $this->parent->getId(); - } - - public function addChild(Collection $child) { - $this->children[] = $child; - } - - public function addChildren($children) { - $this->children = $children; - } - - public function getChildren() { - return $this->children; - } - - - -}
\ No newline at end of file |