@@ -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() |
@@ -22,6 +22,9 @@ |
||
22 | 22 | return $this; |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @return boolean |
|
27 | + */ |
|
25 | 28 | public function current() |
26 | 29 | { |
27 | 30 | return $this->session->getStorage()->user; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
34 | - * @param mixed $is_wysiwyg_editor |
|
34 | + * @param integer $is_wysiwyg_editor |
|
35 | 35 | */ |
36 | 36 | public function setIsWysiwygEditor($is_wysiwyg_editor) |
37 | 37 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * @param mixed $slug |
|
50 | + * @param string $slug |
|
51 | 51 | */ |
52 | 52 | public function setSlug($slug) |
53 | 53 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param mixed $is_active |
|
73 | + * @param integer $is_active |
|
74 | 74 | */ |
75 | 75 | public function setIsActive($is_active) |
76 | 76 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | - * @param $page_uuid |
|
89 | + * @param string $page_uuid |
|
90 | 90 | */ |
91 | 91 | public function setPageUuid($page_uuid) |
92 | 92 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
105 | - * @param $page_id |
|
105 | + * @param integer $page_id |
|
106 | 106 | */ |
107 | 107 | public function setPageId($page_id) |
108 | 108 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
121 | - * @param mixed $title |
|
121 | + * @param string $title |
|
122 | 122 | */ |
123 | 123 | public function setTitle($title) |
124 | 124 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * @param mixed $body |
|
137 | + * @param string $body |
|
138 | 138 | */ |
139 | 139 | public function setBody($body) |
140 | 140 | { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
159 | - * @param mixed $description |
|
159 | + * @param string $description |
|
160 | 160 | */ |
161 | 161 | public function setDescription($description) |
162 | 162 | { |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | } |
173 | 173 | |
174 | 174 | /** |
175 | - * @param mixed $main_img |
|
175 | + * @param string $main_img |
|
176 | 176 | */ |
177 | 177 | public function setMainImg($main_img) |
178 | 178 | { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | } |
203 | 203 | |
204 | 204 | /** |
205 | - * @param mixed $is_homepage |
|
205 | + * @param integer $is_homepage |
|
206 | 206 | */ |
207 | 207 | public function setIsHomepage($is_homepage) |
208 | 208 | { |
@@ -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 | */ |