ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ILIAS\Accessibility\GlobalPageHandler Class Reference

Inits the global page template for screen reade focus. More...

+ Collaboration diagram for ILIAS\Accessibility\GlobalPageHandler:

Public Member Functions

 __construct ()
 Constructor. More...
 

Static Public Member Functions

static initPage (\ilGlobalTemplateInterface $page)
 

Detailed Description

Inits the global page template for screen reade focus.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 12 of file class.GlobalPageHandler.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Accessibility\GlobalPageHandler::__construct ( )

Constructor.

Definition at line 17 of file class.GlobalPageHandler.php.

18  {
19  }

Member Function Documentation

◆ initPage()

static ILIAS\Accessibility\GlobalPageHandler::initPage ( \ilGlobalTemplateInterface  $page)
static
Parameters
\ilGlobalTemplateInterface$page

Definition at line 24 of file class.GlobalPageHandler.php.

References $DIC, and ilGlobalTemplateInterface\addOnLoadCode().

Referenced by ilGlobalPageTemplate\prepareBasicJS().

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  }
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: