ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.GlobalPageHandler.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
4
6
13{
17 public function __construct()
18 {
19 }
20
24 public static function initPage(\ilGlobalTemplateInterface $page)
25 {
26 global $DIC;
27
28 $user = $DIC->user();
29
30 if (is_object($user) && $user->getPref("screen_reader_optimization")) {
31 $page->addOnLoadCode("il.Util.setStdScreenReaderFocus();");
32 }
33 }
34}
An exception for terminatinating execution or to throw for unit testing.
Inits the global page template for screen reade focus.
static initPage(\ilGlobalTemplateInterface $page)
addOnLoadCode($a_code, $a_batch=2)
Add on load code.
$DIC
Definition: xapitoken.php:46