| @@ 329-343 (lines=15) @@ | ||
| 326 | /** |
|
| 327 | * Invokes the about page for the Skosmos service. |
|
| 328 | */ |
|
| 329 | public function invokeAboutPage($request) |
|
| 330 | { |
|
| 331 | $template = $this->twig->loadTemplate('about.twig'); |
|
| 332 | $this->setLanguageProperties($request->getLang()); |
|
| 333 | $url = $request->getServerConstant('HTTP_HOST'); |
|
| 334 | $version = $this->model->getVersion(); |
|
| 335 | ||
| 336 | echo $template->render( |
|
| 337 | array( |
|
| 338 | 'languages' => $this->languages, |
|
| 339 | 'version' => $version, |
|
| 340 | 'server_instance' => $url, |
|
| 341 | 'request' => $request, |
|
| 342 | )); |
|
| 343 | } |
|
| 344 | ||
| 345 | /** |
|
| 346 | * Invokes the search for concepts in all the availible ontologies. |
|
| @@ 527-541 (lines=15) @@ | ||
| 524 | * Invokes the vocabulary group index page template. |
|
| 525 | * @param boolean $stats set to true to get vocabulary statistics visible. |
|
| 526 | */ |
|
| 527 | public function invokeGroupIndex($request, $stats = false) |
|
| 528 | { |
|
| 529 | $lang = $request->getLang(); |
|
| 530 | $this->setLanguageProperties($lang); |
|
| 531 | $template = $this->twig->loadTemplate('group-index.twig'); |
|
| 532 | $vocab = $request->getVocab(); |
|
| 533 | ||
| 534 | echo $template->render( |
|
| 535 | array( |
|
| 536 | 'languages' => $this->languages, |
|
| 537 | 'stats' => $stats, |
|
| 538 | 'vocab' => $vocab, |
|
| 539 | 'request' => $request, |
|
| 540 | )); |
|
| 541 | } |
|
| 542 | ||
| 543 | /** |
|
| 544 | * Invokes the vocabulary group contents page template. |
|