aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Repository
diff options
context:
space:
mode:
authorNicolas Hart <contact@nclshart.net>2017-07-31 23:20:41 +0200
committerNicolas Hart <contact@nclshart.net>2017-07-31 23:20:41 +0200
commitf7a4b441361404b378c30b7788b3699c208537ad (patch)
tree6e0b786d397dbafdc1e6845e6ce59344f8d65f76 /src/Wallabag/UserBundle/Repository
parentaf31cfed769538fcb7d283cb1fad80ac8d07b663 (diff)
downloadwallabag-f7a4b441361404b378c30b7788b3699c208537ad.tar.gz
wallabag-f7a4b441361404b378c30b7788b3699c208537ad.tar.zst
wallabag-f7a4b441361404b378c30b7788b3699c208537ad.zip
add search argument and limit option to list users command
Diffstat (limited to 'src/Wallabag/UserBundle/Repository')
-rw-r--r--src/Wallabag/UserBundle/Repository/UserRepository.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Repository/UserRepository.php b/src/Wallabag/UserBundle/Repository/UserRepository.php
index 75cbeef2..be693d3b 100644
--- a/src/Wallabag/UserBundle/Repository/UserRepository.php
+++ b/src/Wallabag/UserBundle/Repository/UserRepository.php
@@ -56,6 +56,19 @@ class UserRepository extends EntityRepository
56 } 56 }
57 57
58 /** 58 /**
59 * Count how many users are existing.
60 *
61 * @return int
62 */
63 public function getSumUsers()
64 {
65 return $this->createQueryBuilder('u')
66 ->select('count(u)')
67 ->getQuery()
68 ->getSingleScalarResult();
69 }
70
71 /**
59 * Retrieves users filtered with a search term. 72 * Retrieves users filtered with a search term.
60 * 73 *
61 * @param string $term 74 * @param string $term