server/src/app/Repositories/DocumentRepository.php
changeset 326 226d5b17a119
parent 306 3fccf43160a7
child 502 74fba571487e
--- a/server/src/app/Repositories/DocumentRepository.php	Sun Oct 09 11:44:18 2016 +0200
+++ b/server/src/app/Repositories/DocumentRepository.php	Tue Oct 11 02:49:59 2016 +0200
@@ -21,6 +21,17 @@
     public function paginateAll($perPage = 15, $pageName = 'page', $page = null);
 
     /**
+     * Paginate filtered document as a paginator.
+     *
+     * @param  array $filters
+     * @param  int  $perPage
+     * @param  string  $pageName
+     * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
+     */
+    public function paginate($filters = [], $perPage = 15, $pageName = 'page', $page = null, $sort = null);
+
+
+    /**
      * Resolve lexvo id for all documents in the list
      * this allow to optimise the call of lexvo repository
      */