| @@ 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. |
|
| @@ 507-521 (lines=15) @@ | ||
| 504 | * Invokes the vocabulary group index page template. |
|
| 505 | * @param boolean $stats set to true to get vocabulary statistics visible. |
|
| 506 | */ |
|
| 507 | public function invokeGroupIndex($request, $stats = false) |
|
| 508 | { |
|
| 509 | $lang = $request->getLang(); |
|
| 510 | $this->setLanguageProperties($lang); |
|
| 511 | $template = $this->twig->loadTemplate('group-index.twig'); |
|
| 512 | $vocab = $request->getVocab(); |
|
| 513 | ||
| 514 | echo $template->render( |
|
| 515 | array( |
|
| 516 | 'languages' => $this->languages, |
|
| 517 | 'stats' => $stats, |
|
| 518 | 'vocab' => $vocab, |
|
| 519 | 'request' => $request, |
|
| 520 | )); |
|
| 521 | } |
|
| 522 | ||
| 523 | /** |
|
| 524 | * Invokes the vocabulary group contents page template. |
|