aboutsummaryrefslogtreecommitdiff
path: root/app/Models/EntryDAO.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-01-08 00:05:00 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-01-08 00:05:00 -0500
commit46a5bdea25c0ae0624082dd08f3c41060e7fed86 (patch)
treef0736f104e14fa8095aae13d8f3afb18446690b5 /app/Models/EntryDAO.php
parentd31fcb404231b39f1107a32531b972f97ad75b8d (diff)
Ajout d'un filtre sur les articles lus
Ajout d'un filtre sur les articles favoris
Diffstat (limited to 'app/Models/EntryDAO.php')
-rw-r--r--app/Models/EntryDAO.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php
index 9070ae426..aaf4dcf6a 100644
--- a/app/Models/EntryDAO.php
+++ b/app/Models/EntryDAO.php
@@ -293,6 +293,9 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo {
case 'read':
$where .= 'AND e1.is_read = 1 ';
break;
+ case 'favorite':
+ $where .= 'AND e1.is_favorite = 1 ';
+ break;
default:
throw new FreshRSS_EntriesGetter_Exception ('Bad state in Entry->listByType: [' . $state . ']!');
}