application/packages/Admin/src/Service/AdminUserService.php 1 location
|
@@ 103-113 (lines=11) @@
|
100 |
|
* |
101 |
|
* @return Paginator |
102 |
|
*/ |
103 |
|
public function getPagination($page, $limit, $userId) |
104 |
|
{ |
105 |
|
$select = $this->adminUsersMapper->getPaginationSelect($userId); |
106 |
|
$paginationAdapter = new DbSelect($select, $this->adminUsersMapper->getAdapter()); |
107 |
|
$pagination = new Paginator($paginationAdapter); |
108 |
|
|
109 |
|
$pagination->setCurrentPageNumber($page); |
110 |
|
$pagination->setItemCountPerPage($limit); |
111 |
|
|
112 |
|
return $pagination; |
113 |
|
} |
114 |
|
|
115 |
|
/** |
116 |
|
* Return one user for given UUID. |
application/packages/Article/src/Service/ArticleService.php 1 location
|
@@ 23-32 (lines=10) @@
|
20 |
|
$this->articleFilter = $articleFilter; |
21 |
|
} |
22 |
|
|
23 |
|
public function getPagination($select, $page, $limit) |
24 |
|
{ |
25 |
|
$paginatorAdapter = new DbSelect($select, $this->articleMapper->getAdapter()); |
26 |
|
$paginator = new Paginator($paginatorAdapter); |
27 |
|
|
28 |
|
$paginator->setCurrentPageNumber($page); |
29 |
|
$paginator->setItemCountPerPage($limit); |
30 |
|
|
31 |
|
return $paginator; |
32 |
|
} |
33 |
|
|
34 |
|
public function getCategoryIds($articleId) |
35 |
|
{ |
application/packages/Category/src/Service/CategoryService.php 1 location
|
@@ 48-58 (lines=11) @@
|
45 |
|
* |
46 |
|
* @return Paginator |
47 |
|
*/ |
48 |
|
public function getPagination($page, $limit) |
49 |
|
{ |
50 |
|
$select = $this->categoryMapper->getPaginationSelect(); |
51 |
|
$paginatorAdapter = new DbSelect($select, $this->categoryMapper->getAdapter()); |
52 |
|
$paginator = new Paginator($paginatorAdapter); |
53 |
|
|
54 |
|
$paginator->setCurrentPageNumber($page); |
55 |
|
$paginator->setItemCountPerPage($limit); |
56 |
|
|
57 |
|
return $paginator; |
58 |
|
} |
59 |
|
|
60 |
|
/** |
61 |
|
* Return one category for given UUID. |