@@ -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); |
@@ -32,6 +32,9 @@ discard block |
||
| 32 | 32 | $this->adapter = $adapter; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $id |
|
| 37 | + */ |
|
| 35 | 38 | public function get($id) |
| 36 | 39 | { |
| 37 | 40 | return $this->select(['category_id' => $id])->current(); |
@@ -44,6 +47,11 @@ discard block |
||
| 44 | 47 | return $select; |
| 45 | 48 | } |
| 46 | 49 | |
| 50 | + /** |
|
| 51 | + * @param integer $limit |
|
| 52 | + * |
|
| 53 | + * @return \Zend\Db\Sql\Select |
|
| 54 | + */ |
|
| 47 | 55 | public function getCategoryPostsSelect($categoryId = null, $limit = null) |
| 48 | 56 | { |
| 49 | 57 | $select = $this->getSql()->select() |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | if($urlSlug2) { |
| 52 | 52 | $categorySlug = $urlSlug1; |
| 53 | 53 | $postSlug = $urlSlug2; |
| 54 | - } |
|
| 55 | - else { |
|
| 54 | + } else { |
|
| 56 | 55 | $categorySlug = null; |
| 57 | 56 | $postSlug = $urlSlug1; |
| 58 | 57 | } |