@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | protected $connections; |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | - * @param Aura\Sql\ConnectionLocator $connections |
|
| 14 | + * @param ConnectionLocator $connections |
|
| 15 | 15 | */ |
| 16 | 16 | public function __construct(ConnectionLocator $connections) |
| 17 | 17 | { |
@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | ->fetchOne($query, $bindings); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param integer $limit |
|
| 48 | + */ |
|
| 46 | 49 | public function getActivePosts($limit = null, $offset = 0) |
| 47 | 50 | { |
| 48 | 51 | $query = " |
@@ -81,6 +84,10 @@ discard block |
||
| 81 | 84 | ->fetchValue($query, $bindings); |
| 82 | 85 | } |
| 83 | 86 | |
| 87 | + /** |
|
| 88 | + * @param integer $tag |
|
| 89 | + * @param integer $limit |
|
| 90 | + */ |
|
| 84 | 91 | public function getActivePostsByTag($tag, $limit = null, $offset = 0) |
| 85 | 92 | { |
| 86 | 93 | $query = " |
@@ -105,6 +112,9 @@ discard block |
||
| 105 | 112 | ->fetchAll($query, $bindings); |
| 106 | 113 | } |
| 107 | 114 | |
| 115 | + /** |
|
| 116 | + * @param integer $tag |
|
| 117 | + */ |
|
| 108 | 118 | public function getActivePostsCountByTag($tag) |
| 109 | 119 | { |
| 110 | 120 | $query = " |
@@ -124,6 +134,9 @@ discard block |
||
| 124 | 134 | ->fetchValue($query, $bindings); |
| 125 | 135 | } |
| 126 | 136 | |
| 137 | + /** |
|
| 138 | + * @param integer $limit |
|
| 139 | + */ |
|
| 127 | 140 | public function getActivePostsByCategory($category, $limit = null, $offset = 0) |
| 128 | 141 | { |
| 129 | 142 | $query = " |