| @@ 52-60 (lines=9) @@ | ||
| 49 | return $newRes; |
|
| 50 | } |
|
| 51 | ||
| 52 | public function returnAllTagsFromPost($db, $id) |
|
| 53 | { |
|
| 54 | $post = new Post(); |
|
| 55 | $post->setDb($db); |
|
| 56 | $sql = "Call VCategory(?)"; |
|
| 57 | $res = $post->findAllSql($sql, $id); |
|
| 58 | $post->getNext(); |
|
| 59 | return $res; |
|
| 60 | } |
|
| 61 | ||
| 62 | ||
| 63 | public function returnPopularTags($db) |
|
| @@ 63-71 (lines=9) @@ | ||
| 60 | } |
|
| 61 | ||
| 62 | ||
| 63 | public function returnPopularTags($db) |
|
| 64 | { |
|
| 65 | $post = new Post(); |
|
| 66 | $post->setDb($db); |
|
| 67 | $sql = "Call PopularTags()"; |
|
| 68 | $res = $post->findAllSql($sql); |
|
| 69 | $post->getNext(); |
|
| 70 | return $res; |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||