Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | public function getTerms(string $taxonomy): array |
||
8 | { |
||
9 | $result = $this->db->table('terms as t') |
||
10 | ->join('term_taxonomy as tt', 't.term_id', '=', 'tt.term_id') |
||
11 | ->select('t.*') |
||
12 | ->distinct() |
||
13 | ->where('tt.taxonomy', $taxonomy) |
||
14 | ->get() |
||
15 | ->toArray(); |
||
16 | |||
17 | return $result; |
||
18 | } |
||
20 |