| @@ 92-98 (lines=7) @@ | ||
| 89 | return $data; |
|
| 90 | } |
|
| 91 | ||
| 92 | public function getCatName($id) |
|
| 93 | { |
|
| 94 | $postcat = new PostCategory(); |
|
| 95 | $postcat->setDb($this->di->get("db")); |
|
| 96 | $res = $postcat->getCatName($id); |
|
| 97 | return $res; |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| @@ 246-253 (lines=8) @@ | ||
| 243 | } |
|
| 244 | ||
| 245 | ||
| 246 | public function returnCatId($category) |
|
| 247 | { |
|
| 248 | $cat = new PostCategory(); |
|
| 249 | $cat->setDb($this->di->get("db")); |
|
| 250 | $id = $cat->getId($category); |
|
| 251 | return $id; |
|
| 252 | } |
|
| 253 | } |
|
| 254 | ||