ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
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
5
namespace
ILIAS\Accessibility
;
6
12
class
GlobalPageHandler
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
}
ILIAS\Accessibility
Definition:
class.GlobalPageHandler.php:5
ILIAS\Accessibility\GlobalPageHandler
Inits the global page template for screen reade focus.
Definition:
class.GlobalPageHandler.php:12
ilGlobalTemplateInterface\addOnLoadCode
addOnLoadCode($a_code, $a_batch=2)
Add on load code.
ilGlobalTemplateInterface
Created by PhpStorm.
Definition:
interface.ilGlobalTemplateInterface.php:16
ILIAS\Accessibility\GlobalPageHandler\initPage
static initPage(\ilGlobalTemplateInterface $page)
Definition:
class.GlobalPageHandler.php:24
ILIAS\Accessibility\GlobalPageHandler\__construct
__construct()
Constructor.
Definition:
class.GlobalPageHandler.php:17
$DIC
$DIC
Definition:
xapitoken.php:46
Services
Accessibility
classes
class.GlobalPageHandler.php
Generated on Sun Aug 31 2025 20:01:08 for ILIAS by
1.8.13 (using
Doxyfile
)