diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-15 18:20:40 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-15 18:20:40 +0200 |
commit | 04ee5ea0dd96dda87c62da13c8f160044ecc5348 (patch) | |
tree | 373462fde42e4e73f8d770ec8032676671dedb7b /lib/foldermapper.php | |
parent | 8da2aeec783755ebb3d45c52f85260f03f49453d (diff) |
removed useless query in foldermapper
Diffstat (limited to 'lib/foldermapper.php')
-rw-r--r-- | lib/foldermapper.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/foldermapper.php b/lib/foldermapper.php index dbdc8582a..8b948842c 100644 --- a/lib/foldermapper.php +++ b/lib/foldermapper.php @@ -28,28 +28,6 @@ class FolderMapper { $this->userid = \OCP\USER::getUser(); } - /** - * Returns all folders of a user - * @param $userid - * @return - */ - public function getFoldersOfUser($parentid, $userid = null){ - if($userid === null){ - $userid = $this->userid; - } - $folderlist = array(); - $stmt = \OCP\DB::prepare('SELECT * FROM ' . self::tableName . - ' WHERE user_id = ? AND parent_id = ?'); - $result = $stmt->execute(array($this->userid, $parentid)); - - while( $row = $result->fetchRow()){ - $folderid = $row['id']; - $folder = new Folder($row['name'], $folderid); - $folderlist[] = $folder; - } - - return $folderlist; - } /** * @brief Returns the forest (list of trees) of folders children of $parentid |