@@ -11,7 +11,7 @@ |
||
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 | { |
@@ -11,7 +11,7 @@ |
||
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 | { |
@@ -11,7 +11,7 @@ |
||
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 | { |
@@ -11,7 +11,7 @@ |
||
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 | { |
@@ -11,7 +11,7 @@ |
||
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 | { |
@@ -11,7 +11,7 @@ |
||
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 | { |
@@ -59,6 +59,9 @@ discard block |
||
59 | 59 | $this->add_posts($youtube_result, 'youtube'); |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $type |
|
64 | + */ |
|
62 | 65 | private function remove_existing($result, $type) |
63 | 66 | { |
64 | 67 | foreach($result as $key => $row) |
@@ -70,6 +73,9 @@ discard block |
||
70 | 73 | return $result; |
71 | 74 | } |
72 | 75 | |
76 | + /** |
|
77 | + * @param string $type |
|
78 | + */ |
|
73 | 79 | private function add_posts($result, $type) |
74 | 80 | { |
75 | 81 | foreach($result as $row) |
@@ -72,6 +72,9 @@ |
||
72 | 72 | ->fetchAll($query, $bindings); |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param integer $post |
|
77 | + */ |
|
75 | 78 | public function getTagsForPost($post) |
76 | 79 | { |
77 | 80 | $query = " |
@@ -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 = " |