@@ -63,6 +63,9 @@ |
||
63 | 63 | return $this->getPagination($select, $page, $limit); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param integer $limit |
|
68 | + */ |
|
66 | 69 | public function fetchLatest($limit) |
67 | 70 | { |
68 | 71 | return $this->articleEventsMapper->getLatest($limit); |
@@ -203,6 +203,9 @@ |
||
203 | 203 | return $this->articleMapper->getCategories($articleId); |
204 | 204 | } |
205 | 205 | |
206 | + /** |
|
207 | + * @param integer $limit |
|
208 | + */ |
|
206 | 209 | public function getLatestWeb($limit) |
207 | 210 | { |
208 | 211 | return $this->articlePostsMapper->getLatest($limit); |
@@ -91,6 +91,9 @@ |
||
91 | 91 | return $this->getPagination($select, $page, $limit); |
92 | 92 | } |
93 | 93 | |
94 | + /** |
|
95 | + * @param integer $limit |
|
96 | + */ |
|
94 | 97 | public function fetchLatest($limit) |
95 | 98 | { |
96 | 99 | return $this->articleVideosMapper->getLatest($limit); |
@@ -44,6 +44,9 @@ |
||
44 | 44 | return $select; |
45 | 45 | } |
46 | 46 | |
47 | + /** |
|
48 | + * @param integer $limit |
|
49 | + */ |
|
47 | 50 | public function getCategoryPostsSelect($categoryId = null, $limit = null) |
48 | 51 | { |
49 | 52 | $select = $this->getSql()->select() |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | $this->adapter = $adapter; |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $id |
|
36 | + */ |
|
34 | 37 | public function get($id) |
35 | 38 | { |
36 | 39 | return $this->select(['admin_user_id' => $id])->current(); |
@@ -41,7 +44,7 @@ discard block |
||
41 | 44 | * |
42 | 45 | * @param string $email email |
43 | 46 | * |
44 | - * @return array|\ArrayObject|null |
|
47 | + * @return string |
|
45 | 48 | */ |
46 | 49 | public function getByEmail(string $email) |
47 | 50 | { |
@@ -51,7 +54,6 @@ discard block |
||
51 | 54 | /** |
52 | 55 | * Updates login data. |
53 | 56 | * |
54 | - * @param string $uuid admin user id |
|
55 | 57 | * |
56 | 58 | * @return int number of affected rows |
57 | 59 | */ |
@@ -60,6 +62,11 @@ discard block |
||
60 | 62 | return $this->update(['last_login' => date('Y-m-d H:i:s')], ['admin_user_id' => $userId]); |
61 | 63 | } |
62 | 64 | |
65 | + /** |
|
66 | + * @param string $userId |
|
67 | + * |
|
68 | + * @return \Zend\Db\Sql\Select |
|
69 | + */ |
|
63 | 70 | public function getPaginationSelect($userId) |
64 | 71 | { |
65 | 72 | $select = $this->getSql()->select()->order(['created_at' => 'desc']); |
@@ -69,6 +76,9 @@ discard block |
||
69 | 76 | return $select; |
70 | 77 | } |
71 | 78 | |
79 | + /** |
|
80 | + * @param integer $limit |
|
81 | + */ |
|
72 | 82 | public function getRandom($limit) |
73 | 83 | { |
74 | 84 | $select = $this->getSql()->select() |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Zend\Db\Adapter\Adapter; |
8 | 8 | use Zend\Db\Adapter\AdapterAwareInterface; |
9 | 9 | use Zend\Db\Sql\Delete; |
10 | -use Zend\Db\Sql\Insert; |
|
11 | 10 | use Zend\Db\TableGateway\AbstractTableGateway; |
12 | 11 | |
13 | 12 | /** |
@@ -12,7 +12,6 @@ |
||
12 | 12 | /** |
13 | 13 | * Fetches a list of ArticleEntity models. |
14 | 14 | * |
15 | - * @param array $params |
|
16 | 15 | * |
17 | 16 | * @return \ArrayObject |
18 | 17 | */ |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | /** |
173 | 173 | * Return categories with posts(articles). |
174 | 174 | * |
175 | - * @param null $inHomepage |
|
175 | + * @param boolean $inHomepage |
|
176 | 176 | * @param null $inCategoryList |
177 | 177 | * |
178 | 178 | * @return mixed |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | /** |
194 | 194 | * Return categories posts/articles. |
195 | 195 | * |
196 | - * @param null $inCategoryList |
|
196 | + * @param boolean $inCategoryList |
|
197 | 197 | * |
198 | 198 | * @return null|\Zend\Db\ResultSet\ResultSetInterface |
199 | 199 | */ |