From 1256489fa7a3afa0663c9892adcdb6096499c3dc Mon Sep 17 00:00:00 2001 From: cweiske Date: Fri, 20 Nov 2009 17:38:15 +0000 Subject: test deleteBookmarksForUser git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@565 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/Service/Bookmark.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index 1975b22..f671fba 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -778,6 +778,13 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService + /** + * Deletes all bookmarks of the given user + * + * @param integer $uId User ID + * + * @return boolean true when all went well + */ public function deleteBookmarksForUser($uId) { $query = 'DELETE FROM '. $GLOBALS['tableprefix'] .'bookmarks WHERE uId = '. intval($uId); -- cgit v1.2.3