summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle
diff options
context:
space:
mode:
authorDavid Glenck <pascal.free@gmail.com>2014-03-26 22:15:09 +0100
committerChristian Weiske <cweiske@cweiske.de>2014-03-26 22:15:09 +0100
commit0a5eed2dd36d1a47673d7ca3105a86a8de99b649 (patch)
treed9b0bb15398e7ed50fd5c84a75218c3dab3464cd /src/SemanticScuttle
parent49f1259c420b6f13e2e76164b6950c23b9ba395c (diff)
downloadsemanticscuttle-0a5eed2dd36d1a47673d7ca3105a86a8de99b649.tar.gz
semanticscuttle-0a5eed2dd36d1a47673d7ca3105a86a8de99b649.tar.bz2
add option to get last modified date instead of creation date
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php
index faeecc2..1315350 100644
--- a/src/SemanticScuttle/Service/Bookmark.php
+++ b/src/SemanticScuttle/Service/Bookmark.php
@@ -687,6 +687,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
* @param string $terms Search terms separated by spaces
* @param string $sortOrder One of the following values:
* "date_asc", "date_desc",
+ * "modified_asc", "modified_desc"
* "title_desc", "title_asc",
* "url_desc", "url_asc",
* "voting_asc", "voting_desc"
@@ -814,6 +815,12 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
case 'url_asc':
$query_5 .= ' ORDER BY B.bAddress ASC ';
break;
+ case 'modified_desc':
+ $query_5 .= ' ORDER BY B.bModified DESC ';
+ break;
+ case 'modified_asc':
+ $query_5 .= ' ORDER BY B.bModified ASC ';
+ break;
default:
$query_5 .= ' ORDER BY B.' . $GLOBALS['dateOrderField'] . ' DESC ';
}