summaryrefslogtreecommitdiff
path: root/services/userservice.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-11 12:39:44 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-11 12:39:44 +0000
commit44915a6e54843ccba31cc18c5a5ae469f253b1fd (patch)
tree6e45dc0f0d1df6ec094fa8677373cd602654359b /services/userservice.php
parentfe83f9ea0eb58b7f5b2e034bf7ba9f855a73cb23 (diff)
downloadsemanticscuttle-44915a6e54843ccba31cc18c5a5ae469f253b1fd.tar.gz
semanticscuttle-44915a6e54843ccba31cc18c5a5ae469f253b1fd.tar.bz2
Interface Fix: add bookmarks counting into admin page
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@273 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/userservice.php')
-rw-r--r--services/userservice.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/userservice.php b/services/userservice.php
index 7f0382d..a4ed3ac 100644
--- a/services/userservice.php
+++ b/services/userservice.php
@@ -592,5 +592,10 @@ class User {
}
return $this->isAdmin;
}
+
+ function getNbBookmarks($range = 'public') {
+ $bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
+ return $bookmarkservice->countBookmarks($this->getId(), $range);
+ }
}
?>