1 | <?php |
||
7 | final class PageCategories extends BaseFinder |
||
8 | { |
||
|
|||
9 | |||
10 | protected $table = 'category'; |
||
11 | |||
12 | protected $translations = 'category_translate'; |
||
13 | |||
14 | protected $nameColumn = 'category_translate.name'; |
||
15 | |||
16 | protected $urlColumn = 'category.url'; |
||
17 | |||
18 | protected $langColumn = 'category_translate.lang'; |
||
19 | |||
20 | protected $parentId = 'category.parent_id'; |
||
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | public function getGroupName() { |
||
28 | |||
29 | /** |
||
30 | * @param string $word |
||
31 | * @param string $language |
||
32 | * @param integer $limit |
||
33 | * @return Result |
||
34 | */ |
||
35 | public function getResultsFor($word, $language, $limit = 10) { |
||
62 | |||
63 | /** |
||
64 | * Returns url segments |
||
65 | * from all parent categories |
||
66 | * |
||
67 | * @param integer $id |
||
68 | * @return string parent url with last "/" symbol |
||
69 | */ |
||
70 | protected function getPagentUrl($id) { |
||
83 | |||
84 | /** |
||
85 | * @param string $url |
||
86 | * @return string |
||
87 | */ |
||
92 | } |