summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGregor Tätzner <gregor@freenet.de>2012-07-11 21:17:32 +0200
committerGregor Tätzner <gregor@freenet.de>2012-07-11 21:17:32 +0200
commit4ade56a7af6ff5230817f2680f358d0c5f57f56f (patch)
tree5a1cb7f29a3873ab0eb0d4d7c3d05bd6cc94cba5 /lib
parent4c7651538d68a3eede427bd723b1a1c24976bbce (diff)
Fixed evaluation and utilization of parentid in addfeed and addfolder.
Diffstat (limited to 'lib')
-rw-r--r--lib/folder.php10
1 files changed, 5 insertions, 5 deletions
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 <cosenal@gmail.com>
-*
+*
* 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;
}