| @@ 307-321 (lines=15) @@ | ||
| 304 | /** |
|
| 305 | * Invokes the about page for the Skosmos service. |
|
| 306 | */ |
|
| 307 | public function invokeAboutPage($request) |
|
| 308 | { |
|
| 309 | $template = $this->twig->loadTemplate('about.twig'); |
|
| 310 | $this->setLanguageProperties($request->getLang()); |
|
| 311 | $url = $request->getServerConstant('HTTP_HOST'); |
|
| 312 | $version = $this->model->getVersion(); |
|
| 313 | ||
| 314 | echo $template->render( |
|
| 315 | array( |
|
| 316 | 'languages' => $this->languages, |
|
| 317 | 'version' => $version, |
|
| 318 | 'server_instance' => $url, |
|
| 319 | 'request' => $request, |
|
| 320 | )); |
|
| 321 | } |
|
| 322 | ||
| 323 | /** |
|
| 324 | * Invokes the search for concepts in all the available ontologies. |
|
| @@ 523-537 (lines=15) @@ | ||
| 520 | * Invokes the vocabulary group index page template. |
|
| 521 | * @param boolean $stats set to true to get vocabulary statistics visible. |
|
| 522 | */ |
|
| 523 | public function invokeGroupIndex($request, $stats = false) |
|
| 524 | { |
|
| 525 | $lang = $request->getLang(); |
|
| 526 | $this->setLanguageProperties($lang); |
|
| 527 | $template = $this->twig->loadTemplate('group-index.twig'); |
|
| 528 | $vocab = $request->getVocab(); |
|
| 529 | ||
| 530 | echo $template->render( |
|
| 531 | array( |
|
| 532 | 'languages' => $this->languages, |
|
| 533 | 'stats' => $stats, |
|
| 534 | 'vocab' => $vocab, |
|
| 535 | 'request' => $request, |
|
| 536 | )); |
|
| 537 | } |
|
| 538 | ||
| 539 | /** |
|
| 540 | * Loads and renders the view containing a specific vocabulary. |
|