From 4ade56a7af6ff5230817f2680f358d0c5f57f56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20T=C3=A4tzner?= Date: Wed, 11 Jul 2012 21:17:32 +0200 Subject: Fixed evaluation and utilization of parentid in addfeed and addfolder. --- lib/folder.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/folder.php b/lib/folder.php index a44630b9c..6654b2f5e 100644 --- a/lib/folder.php +++ b/lib/folder.php @@ -4,10 +4,10 @@ * * @author Alessandro Cosentino * Copyright (c) 2012 - Alessandro Cosentino -* +* * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file -* +* */ /** @@ -19,7 +19,7 @@ class OC_News_Folder extends OC_News_Collection { private $children; private $parent; - public function __construct($name, $id = null, $parent = null){ + public function __construct($name, $id = null, OC_News_Collection $parent = null){ $this->name = $name; if ($id !== null){ parent::__construct($id); @@ -44,11 +44,11 @@ class OC_News_Folder extends OC_News_Collection { } return $this->parent->getId(); } - + public function addChild(OC_News_Collection $child){ $this->children[] = $child; } - + public function getChildren(){ return $this->children; } -- cgit v1.2.3