From: cweiske Date: Wed, 28 Oct 2009 22:26:37 +0000 (+0000) Subject: explain deleteAll() in bookmarks X-Git-Tag: v0.97~236 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c95e4dce5b65932a9ffa3fb7d3b23ca5fb58ef59;p=semanticscuttle.git explain deleteAll() in bookmarks git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@458 b3834d28-1941-0410-a4f8-b48e95affb8f --- diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index 54a1df6..e569ade 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -811,7 +811,13 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService - function deleteAll() + /** + * Delete all bookmarks. + * Mainly used in unit tests. + * + * @return void + */ + public function deleteAll() { $query = 'TRUNCATE TABLE `'. $this->getTableName() .'`'; $this->db->sql_query($query);