diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/ExportController.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/ExportController.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/ExportController.php b/src/Wallabag/CoreBundle/Controller/ExportController.php index cec8d499..8517e7a9 100644 --- a/src/Wallabag/CoreBundle/Controller/ExportController.php +++ b/src/Wallabag/CoreBundle/Controller/ExportController.php | |||
@@ -47,7 +47,7 @@ class ExportController extends Controller | |||
47 | * | 47 | * |
48 | * @Route("/export/{category}.{format}", name="export_entries", requirements={ | 48 | * @Route("/export/{category}.{format}", name="export_entries", requirements={ |
49 | * "format": "epub|mobi|pdf|json|xml|txt|csv", | 49 | * "format": "epub|mobi|pdf|json|xml|txt|csv", |
50 | * "category": "all|unread|starred|archive|tag_entries|untagged|search" | 50 | * "category": "all|unread|starred|archive|tag_entries|untagged|search|with_annotations" |
51 | * }) | 51 | * }) |
52 | * | 52 | * |
53 | * @return \Symfony\Component\HttpFoundation\Response | 53 | * @return \Symfony\Component\HttpFoundation\Response |
@@ -80,6 +80,13 @@ class ExportController extends Controller | |||
80 | ->getResult(); | 80 | ->getResult(); |
81 | 81 | ||
82 | $title = 'Search ' . $searchTerm; | 82 | $title = 'Search ' . $searchTerm; |
83 | } elseif ('with_annotations' === $category) { | ||
84 | $entries = $repository->getBuilderForAnnotationsByUser( | ||
85 | $this->getUser()->getId() | ||
86 | )->getQuery() | ||
87 | ->getResult(); | ||
88 | |||
89 | $title = 'With annotations'; | ||
83 | } else { | 90 | } else { |
84 | $entries = $repository | 91 | $entries = $repository |
85 | ->$methodBuilder($this->getUser()->getId()) | 92 | ->$methodBuilder($this->getUser()->getId()) |