diff options
author | Christian Weiske <cweiske@cweiske.de> | 2010-09-30 07:46:51 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2010-09-30 07:46:51 +0200 |
commit | 2d31b55b24e79a2014171c89d96c7242e4c590ac (patch) | |
tree | ab838abfb208ba0fa7cb50b062f6d3cd7f16ae67 /src | |
parent | 5565b0695f72fc28f625c2671648f4cd0a798238 (diff) | |
parent | e1f9d9e3a07652d4ec668a2337d8b788e031ab9f (diff) | |
download | semanticscuttle-2d31b55b24e79a2014171c89d96c7242e4c590ac.tar.gz semanticscuttle-2d31b55b24e79a2014171c89d96c7242e4c590ac.tar.bz2 |
merge master
Diffstat (limited to 'src')
-rw-r--r-- | src/SemanticScuttle/Service/Bookmark.php | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index dde1df5..4e18d3f 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -176,7 +176,10 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService * Retrieves a bookmark with the given URL. * DOES NOT RESPECT PRIVACY SETTINGS! * - * @param string $address URL to get bookmarks for + * @param string $address URL to get bookmarks for + * @param boolean $all Retrieve from all users (true) + * or only bookmarks owned by the current + * user (false) * * @return mixed Array with bookmark data or false in case * of an error (i.e. not found). @@ -184,9 +187,9 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService * @uses getBookmarkByHash() * @see getBookmarkByShortname() */ - public function getBookmarkByAddress($address) + public function getBookmarkByAddress($address, $all = true) { - return $this->getBookmarkByHash($this->getHash($address)); + return $this->getBookmarkByHash($this->getHash($address), $all); } @@ -195,16 +198,19 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService * Retrieves a bookmark with the given hash. * DOES NOT RESPECT PRIVACY SETTINGS! * - * @param string $hash URL hash + * @param string $hash URL hash + * @param boolean $all Retrieve from all users (true) + * or only bookmarks owned by the current + * user (false) * * @return mixed Array with bookmark data or false in case * of an error (i.e. not found). * * @see getHash() */ - public function getBookmarkByHash($hash) + public function getBookmarkByHash($hash, $all = true) { - return $this->_getbookmark('bHash', $hash, true); + return $this->_getbookmark('bHash', $hash, $all); } |