@@ 572-603 (lines=32) @@ | ||
569 | * |
|
570 | * @param mixed $msg |
|
571 | */ |
|
572 | public function doViewParsers($msg = '') |
|
573 | { |
|
574 | $data = $this->misc->getDatabaseAccessor(); |
|
575 | ||
576 | $this->printTrail('schema'); |
|
577 | $this->printTabs('schema', 'fulltext'); |
|
578 | $this->printTabs('fulltext', 'ftsparsers'); |
|
579 | $this->printMsg($msg); |
|
580 | ||
581 | $parsers = $data->getFtsParsers(false); |
|
582 | ||
583 | $columns = [ |
|
584 | 'schema' => [ |
|
585 | 'title' => $this->lang['strschema'], |
|
586 | 'field' => Decorator::field('schema'), |
|
587 | ], |
|
588 | 'name' => [ |
|
589 | 'title' => $this->lang['strname'], |
|
590 | 'field' => Decorator::field('name'), |
|
591 | ], |
|
592 | 'comment' => [ |
|
593 | 'title' => $this->lang['strcomment'], |
|
594 | 'field' => Decorator::field('comment'), |
|
595 | ], |
|
596 | ]; |
|
597 | ||
598 | $actions = []; |
|
599 | ||
600 | echo $this->printTable($parsers, $columns, $actions, 'fulltext-viewparsers', $this->lang['strftsnoparsers']); |
|
601 | ||
602 | //TODO: navlink to "create parser" |
|
603 | } |
|
604 | ||
605 | /** |
|
606 | * View list of FTS dictionaries. |
@@ 47-76 (lines=30) @@ | ||
44 | * |
|
45 | * @param mixed $msg |
|
46 | */ |
|
47 | public function doDefault($msg = '') |
|
48 | { |
|
49 | $data = $this->misc->getDatabaseAccessor(); |
|
50 | ||
51 | $this->printTrail('database'); |
|
52 | $this->printTabs('database', 'languages'); |
|
53 | $this->printMsg($msg); |
|
54 | ||
55 | $languages = $data->getLanguages(); |
|
56 | ||
57 | $columns = [ |
|
58 | 'language' => [ |
|
59 | 'title' => $this->lang['strname'], |
|
60 | 'field' => Decorator::field('lanname'), |
|
61 | ], |
|
62 | 'trusted' => [ |
|
63 | 'title' => $this->lang['strtrusted'], |
|
64 | 'field' => Decorator::field('lanpltrusted'), |
|
65 | 'type' => 'yesno', |
|
66 | ], |
|
67 | 'function' => [ |
|
68 | 'title' => $this->lang['strfunction'], |
|
69 | 'field' => Decorator::field('lanplcallf'), |
|
70 | ], |
|
71 | ]; |
|
72 | ||
73 | $actions = []; |
|
74 | ||
75 | echo $this->printTable($languages, $columns, $actions, 'languages-languages', $this->lang['strnolanguages']); |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * Generate XML for the browser tree. |