| @@ 309-323 (lines=15) @@ | ||
| 306 | /** |
|
| 307 | * Invokes the about page for the Skosmos service. |
|
| 308 | */ |
|
| 309 | public function invokeAboutPage($request) |
|
| 310 | { |
|
| 311 | $template = $this->twig->loadTemplate('about.twig'); |
|
| 312 | $this->setLanguageProperties($request->getLang()); |
|
| 313 | $url = $request->getServerConstant('HTTP_HOST'); |
|
| 314 | $version = $this->model->getVersion(); |
|
| 315 | ||
| 316 | echo $template->render( |
|
| 317 | array( |
|
| 318 | 'languages' => $this->languages, |
|
| 319 | 'version' => $version, |
|
| 320 | 'server_instance' => $url, |
|
| 321 | 'request' => $request, |
|
| 322 | )); |
|
| 323 | } |
|
| 324 | ||
| 325 | /** |
|
| 326 | * Invokes the search for concepts in all the availible ontologies. |
|
| @@ 490-504 (lines=15) @@ | ||
| 487 | * Invokes the vocabulary group index page template. |
|
| 488 | * @param boolean $stats set to true to get vocabulary statistics visible. |
|
| 489 | */ |
|
| 490 | public function invokeGroupIndex($request, $stats = false) |
|
| 491 | { |
|
| 492 | $lang = $request->getLang(); |
|
| 493 | $this->setLanguageProperties($lang); |
|
| 494 | $template = $this->twig->loadTemplate('group-index.twig'); |
|
| 495 | $vocab = $request->getVocab(); |
|
| 496 | ||
| 497 | echo $template->render( |
|
| 498 | array( |
|
| 499 | 'languages' => $this->languages, |
|
| 500 | 'stats' => $stats, |
|
| 501 | 'vocab' => $vocab, |
|
| 502 | 'request' => $request, |
|
| 503 | )); |
|
| 504 | } |
|
| 505 | ||
| 506 | /** |
|
| 507 | * Loads and renders the view containing a specific vocabulary. |
|