ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
global $DIC
Definition: goto.php:24
addOnLoadCode($a_code, $a_batch=2)
Add on load code.