aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntriesRepository.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-30 07:50:52 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-30 07:50:52 +0100
commita8c90c5c1b60d0c258ce56f2a8e382859e70e8d3 (patch)
tree323d601e080df300671b0c80765b8d3a62814180 /src/Wallabag/CoreBundle/Repository/EntriesRepository.php
parenta65f5d5563ba16a5c2096aab5571772d9f4b81ff (diff)
downloadwallabag-a8c90c5c1b60d0c258ce56f2a8e382859e70e8d3.tar.gz
wallabag-a8c90c5c1b60d0c258ce56f2a8e382859e70e8d3.tar.zst
wallabag-a8c90c5c1b60d0c258ce56f2a8e382859e70e8d3.zip
add documentation for API
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntriesRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntriesRepository.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntriesRepository.php b/src/Wallabag/CoreBundle/Repository/EntriesRepository.php
index 5a71b9ef..edbb96b4 100644
--- a/src/Wallabag/CoreBundle/Repository/EntriesRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntriesRepository.php
@@ -76,4 +76,17 @@ class EntriesRepository extends EntityRepository
76 76
77 return $paginator; 77 return $paginator;
78 } 78 }
79
80 public function findEntries($userId, $isArchived, $isStarred, $isDeleted, $sort, $order)
81 {
82 $qb = $this->createQueryBuilder('e')
83 ->select('e')
84 ->where('e.isFav =:isStarred')->setParameter('isStarred', $isStarred)
85 ->andWhere('e.isRead =:isArchived')->setParameter('isArchived', $isArchived)
86 ->andWhere('e.userId =:userId')->setParameter('userId', $userId)
87 ->getQuery()
88 ->getResult(Query::HYDRATE_ARRAY);
89
90 return $qb;
91 }
79} 92}