summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-20 11:26:16 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-20 11:26:16 +0000
commitab75c7ff445bb8659293af3a39a355185221cb37 (patch)
tree3fbcf0232f3b28c2717e04fcfbcf3743cd40646d /src/SemanticScuttle
parentedfd04698a935f8c3a3441ae92a5cd9807705641 (diff)
downloadsemanticscuttle-ab75c7ff445bb8659293af3a39a355185221cb37.tar.gz
semanticscuttle-ab75c7ff445bb8659293af3a39a355185221cb37.tar.bz2
docblock
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@673 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r--src/SemanticScuttle/functions.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/SemanticScuttle/functions.php b/src/SemanticScuttle/functions.php
index d21a094..15db022 100644
--- a/src/SemanticScuttle/functions.php
+++ b/src/SemanticScuttle/functions.php
@@ -35,10 +35,23 @@ function filter($data, $type = NULL) {
return $data;
}
-function getPerPageCount($userObject = null) {
+/**
+ * Returns the number of bookmarks that shall be displayed on one page.
+ *
+ * @param SemanticScuttle_Model_User $userObject Object of the current user
+ *
+ * @return integer Number of bookmarks per page
+ *
+ * @uses $defaultPerPage
+ * @uses $defaultPerPageForAdmins
+ */
+function getPerPageCount($userObject = null)
+{
global $defaultPerPage, $defaultPerPageForAdmins;
- if(isset($defaultPerPageForAdmins) && $userObject != null && $userObject->isAdmin()) {
+ if (isset($defaultPerPageForAdmins)
+ && $userObject != null && $userObject->isAdmin()
+ ) {
return $defaultPerPageForAdmins;
} else {
return $defaultPerPage;