| @@ 380-394 (lines=15) @@ | ||
| 377 | /** |
|
| 378 | * Invokes the about page for the Skosmos service. |
|
| 379 | */ |
|
| 380 | public function invokeAboutPage($request) |
|
| 381 | { |
|
| 382 | $template = $this->twig->loadTemplate('about.twig'); |
|
| 383 | $this->setLanguageProperties($request->getLang()); |
|
| 384 | $url = $request->getServerConstant('HTTP_HOST'); |
|
| 385 | $version = $this->model->getVersion(); |
|
| 386 | ||
| 387 | echo $template->render( |
|
| 388 | array( |
|
| 389 | 'languages' => $this->languages, |
|
| 390 | 'version' => $version, |
|
| 391 | 'server_instance' => $url, |
|
| 392 | 'request' => $request, |
|
| 393 | )); |
|
| 394 | } |
|
| 395 | ||
| 396 | /** |
|
| 397 | * Invokes the search for concepts in all the availible ontologies. |
|
| @@ 565-579 (lines=15) @@ | ||
| 562 | * Invokes the vocabulary group index page template. |
|
| 563 | * @param boolean $stats set to true to get vocabulary statistics visible. |
|
| 564 | */ |
|
| 565 | public function invokeGroupIndex($request, $stats = false) |
|
| 566 | { |
|
| 567 | $lang = $request->getLang(); |
|
| 568 | $this->setLanguageProperties($lang); |
|
| 569 | $template = $this->twig->loadTemplate('group-index.twig'); |
|
| 570 | $vocab = $request->getVocab(); |
|
| 571 | ||
| 572 | echo $template->render( |
|
| 573 | array( |
|
| 574 | 'languages' => $this->languages, |
|
| 575 | 'stats' => $stats, |
|
| 576 | 'vocab' => $vocab, |
|
| 577 | 'request' => $request, |
|
| 578 | )); |
|
| 579 | } |
|
| 580 | ||
| 581 | /** |
|
| 582 | * Loads and renders the view containing a specific vocabulary. |
|