summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-19 19:44:04 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-19 19:44:04 +0000
commit7a9bf6772d0f4dc033e9696e7e85d325c695efd1 (patch)
tree40e5292313ae03475e586f78b5b12a509c460f3b /src/SemanticScuttle
parent7a495ede9d122afec778890dbf824d56c5058ade (diff)
downloadsemanticscuttle-7a9bf6772d0f4dc033e9696e7e85d325c695efd1.tar.gz
semanticscuttle-7a9bf6772d0f4dc033e9696e7e85d325c695efd1.tar.bz2
test bookmarkExists() in all variations
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@561 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php
index b0ffbac..5842390 100644
--- a/src/SemanticScuttle/Service/Bookmark.php
+++ b/src/SemanticScuttle/Service/Bookmark.php
@@ -236,10 +236,21 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
- function bookmarkExists($address = false, $uid = NULL)
+ /**
+ * Checks if a bookmark for the given URL exists
+ * already
+ *
+ * @param string $address URL of bookmark to check
+ * @param integer $uid User id the bookmark has to belong to.
+ * null for all users
+ *
+ * @return boolean True when the bookmark with the given URL
+ * exists for the user, false if not.
+ */
+ function bookmarkExists($address = false, $uid = null)
{
if (!$address) {
- return;
+ return false;
}
$address = $this->normalize($address);