ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAccessibilityControlConceptGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilAccessibilityControlConceptGUI:
+ Collaboration diagram for ilAccessibilityControlConceptGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Static Public Member Functions

static getFooterLink ()
 
static getFooterText ()
 

Protected Member Functions

 printToGlobalTemplate (ilGlobalTemplateInterface $tpl)
 
 initTemplate (string $a_tmpl)
 
 showControlConcept ()
 Show accessibility control concept. More...
 

Protected Attributes

ilSetting $settings
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
ilCtrl $ctrl
 
ILIAS HTTP Services $http
 
ilObjUser $user
 
ilAccessibilitySequentialDocumentEvaluation $accessibilityEvaluation
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilAccessibilityControlConceptGUI

Author
Thomas Famula famul.nosp@m.a@le.nosp@m.ifos..nosp@m.de

Definition at line 23 of file class.ilAccessibilityControlConceptGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilAccessibilityControlConceptGUI::__construct ( )

Definition at line 33 of file class.ilAccessibilityControlConceptGUI.php.

References $accessibilityEvaluation, $DIC, $http, $lng, $settings, $tpl, $user, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\settings(), and ILIAS\Repository\user().

34  {
35  global $DIC;
36 
37  $ilCtrl = $DIC->ctrl();
38  $tpl = $DIC["tpl"];
39  $lng = $DIC->language();
40  $http = $DIC->http();
41  $user = $DIC->user();
42  $settings = $DIC->settings();
43  $accessibilityEvaluation = $DIC['acc.document.evaluator'];
44 
45  $this->ctrl = $ilCtrl;
46  $this->tpl = $tpl;
47  $this->lng = $lng;
48  $this->http = $http;
49  $this->user = $user;
50  $this->settings = $settings;
51  $this->accessibilityEvaluation = $accessibilityEvaluation;
52 
53  $this->user->setLanguage($this->lng->getLangKey());
54  }
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
ilAccessibilitySequentialDocumentEvaluation $accessibilityEvaluation
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilAccessibilityControlConceptGUI::executeCommand ( )

Definition at line 57 of file class.ilAccessibilityControlConceptGUI.php.

References ILIAS\Repository\ctrl().

58  {
59  $cmd = $this->ctrl->getCmd("showControlConcept");
60  if (in_array($cmd, array("showControlConcept"))) {
61  $this->$cmd();
62  }
63  }
+ Here is the call graph for this function:

◆ getFooterLink()

static ilAccessibilityControlConceptGUI::getFooterLink ( )
static

Definition at line 116 of file class.ilAccessibilityControlConceptGUI.php.

References $DIC, and ilObjAccessibilitySettings\getControlConceptStatus().

Referenced by ILIAS\UICore\PageContentProvider\getFooterModification().

116  : string
117  {
118  global $DIC;
119  $ilCtrl = $DIC->ctrl();
120 
122  return "";
123  }
124 
125  return $ilCtrl->getLinkTargetByClass("ilaccessibilitycontrolconceptgui");
126  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFooterText()

static ilAccessibilityControlConceptGUI::getFooterText ( )
static

Definition at line 128 of file class.ilAccessibilityControlConceptGUI.php.

References $DIC, and ilLanguage\txt().

Referenced by ILIAS\UICore\PageContentProvider\getFooterModification().

128  : string
129  {
130  global $DIC;
131 
132  $lng = $DIC->language();
133  return $lng->txt("accessibility_control_concept");
134  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initTemplate()

ilAccessibilityControlConceptGUI::initTemplate ( string  $a_tmpl)
protected

Definition at line 73 of file class.ilAccessibilityControlConceptGUI.php.

References $tpl, and ilGlobalTemplateInterface\addBlockFile().

Referenced by showControlConcept().

74  {
75  $tpl = new ilGlobalTemplate("tpl.main.html", true, true);
76  $template_file = $a_tmpl;
77  $template_dir = 'Services/Accessibility';
78  $tpl->addBlockFile('CONTENT', 'content', $template_file, $template_dir);
79  return $tpl;
80  }
addBlockFile(string $var, string $block, string $template_name, string $in_module=null)
overwrites ITX::addBlockFile
special template class to simplify handling of ITX/PEAR
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ printToGlobalTemplate()

ilAccessibilityControlConceptGUI::printToGlobalTemplate ( ilGlobalTemplateInterface  $tpl)
protected

Definition at line 65 of file class.ilAccessibilityControlConceptGUI.php.

References $DIC, and ilGlobalTemplateInterface\get().

Referenced by showControlConcept().

66  {
67  global $DIC;
68  $gtpl = $DIC['tpl'];
69  $gtpl->setContent($tpl->get());
70  $gtpl->printToStdout("DEFAULT", false, true);
71  }
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showControlConcept()

ilAccessibilityControlConceptGUI::showControlConcept ( )
protected

Show accessibility control concept.

Definition at line 85 of file class.ilAccessibilityControlConceptGUI.php.

References ANONYMOUS_USER_ID, ilAccessibilitySupportContacts\getMailsToAddress(), initTemplate(), ILIAS\Repository\lng(), ilLegacyFormElementsUtil\prepareFormOutput(), printToGlobalTemplate(), ILIAS\Repository\settings(), ilGlobalTemplateInterface\setVariable(), and ILIAS\Repository\user().

85  : void
86  {
87  if (!$this->user->getId()) {
88  $this->user->setId(ANONYMOUS_USER_ID);
89  }
90 
91  $this->tpl->loadStandardTemplate();
92  $this->tpl->setTitle($this->lng->txt("accessibility_control_concept"));
93 
94  $tpl = $this->initTemplate('tpl.view_accessibility_control_concept.html');
95 
96  $handleDocument = $this->accessibilityEvaluation->hasDocument();
97  if ($handleDocument) {
98  $document = $this->accessibilityEvaluation->document();
99  $tpl->setVariable('ACCESSIBILITY_CONTROL_CONCEPT_CONTENT', $document->content());
100  } else {
103  : $this->settings->get("admin_email");
104  $tpl->setVariable(
105  'ACCESSIBILITY_CONTROL_CONCEPT_CONTENT',
106  sprintf(
107  $this->lng->txt('no_accessibility_control_concept_description'),
108  'mailto:' . $mails
109  )
110  );
111  }
112 
113  $this->printToGlobalTemplate($tpl);
114  }
const ANONYMOUS_USER_ID
Definition: constants.php:27
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static prepareFormOutput($a_str, bool $a_strip=false)
+ Here is the call graph for this function:

Field Documentation

◆ $accessibilityEvaluation

ilAccessibilitySequentialDocumentEvaluation ilAccessibilityControlConceptGUI::$accessibilityEvaluation
protected

Definition at line 31 of file class.ilAccessibilityControlConceptGUI.php.

Referenced by __construct().

◆ $ctrl

ilCtrl ilAccessibilityControlConceptGUI::$ctrl
protected

Definition at line 28 of file class.ilAccessibilityControlConceptGUI.php.

◆ $http

ILIAS HTTP Services ilAccessibilityControlConceptGUI::$http
protected

Definition at line 29 of file class.ilAccessibilityControlConceptGUI.php.

Referenced by __construct().

◆ $lng

ilLanguage ilAccessibilityControlConceptGUI::$lng
protected

Definition at line 27 of file class.ilAccessibilityControlConceptGUI.php.

Referenced by __construct().

◆ $settings

ilSetting ilAccessibilityControlConceptGUI::$settings
protected

Definition at line 25 of file class.ilAccessibilityControlConceptGUI.php.

Referenced by __construct().

◆ $tpl

ilGlobalTemplateInterface ilAccessibilityControlConceptGUI::$tpl
protected

Definition at line 26 of file class.ilAccessibilityControlConceptGUI.php.

Referenced by __construct(), and initTemplate().

◆ $user

ilObjUser ilAccessibilityControlConceptGUI::$user
protected

Definition at line 30 of file class.ilAccessibilityControlConceptGUI.php.

Referenced by __construct().


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