ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilAccessibilityControlConceptGUI Class Reference

Class ilAccessibilityControlConceptGUI. More...

+ Collaboration diagram for ilAccessibilityControlConceptGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 

Static Public Member Functions

static getFooterLink ()
 Get footer link. More...
 
static getFooterText ()
 Get footer text. More...
 

Protected Member Functions

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

Protected Attributes

 $tpl
 
 $lng
 
 $ctrl
 
 $http
 
 $user
 
 $accessibilityEvaluation
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilAccessibilityControlConceptGUI::__construct ( )

Constructor.

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

40 {
41 global $DIC;
42
43 $ilCtrl = $DIC->ctrl();
44 $tpl = $DIC["tpl"];
45 $lng = $DIC->language();
46 $http = $DIC->http();
47 $user = $DIC->user();
48 $settings = $DIC->settings();
49 $accessibilityEvaluation = $DIC['acc.document.evaluator'];
50
51 $this->ctrl = $ilCtrl;
52 $this->tpl = $tpl;
53 $this->lng = $lng;
54 $this->http = $http;
55 $this->user = $user;
56 $this->settings = $settings;
57 $this->accessibilityEvaluation = $accessibilityEvaluation;
58
59 $this->user->setLanguage($this->lng->getLangKey());
60 }
user()
Definition: user.php:4
global $ilCtrl
Definition: ilias.php:18
static http()
Fetches the global http state from ILIAS.
settings()
Definition: settings.php:2
$DIC
Definition: xapitoken.php:46

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

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilAccessibilityControlConceptGUI::executeCommand ( )

Execute command.

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

67 {
68 $cmd = $this->ctrl->getCmd("showControlConcept");
69 if (in_array($cmd, array("showControlConcept"))) {
70 $this->$cmd();
71 }
72 }

◆ getFooterLink()

static ilAccessibilityControlConceptGUI::getFooterLink ( )
static

Get footer link.

Returns
string footer link

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

138 {
139 global $DIC;
140 $ilCtrl = $DIC->ctrl();
141
143 return "";
144 }
145
146 return $ilCtrl->getLinkTargetByClass("ilaccessibilitycontrolconceptgui");
147 }

References $DIC, $ilCtrl, and ilObjAccessibilitySettings\getControlConceptStatus().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFooterText()

static ilAccessibilityControlConceptGUI::getFooterText ( )
static

Get footer text.

Returns
string footer text

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

155 {
156 global $DIC;
157
158 $lng = $DIC->language();
159 return $lng->txt("accessibility_control_concept");
160 }

References $DIC, and $lng.

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

+ Here is the caller graph for this function:

◆ initTemplate()

ilAccessibilityControlConceptGUI::initTemplate (   $a_tmpl)
protected
Parameters
$a_tmpl
Returns
ilGlobalTemplate

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

90 {
91 $tpl = new ilGlobalTemplate("tpl.main.html", true, true);
92 $template_file = $a_tmpl;
93 $template_dir = 'Services/Accessibility';
94 $tpl->addBlockFile('CONTENT', 'content', $template_file, $template_dir);
95 return $tpl;
96 }
special template class to simplify handling of ITX/PEAR

References $tpl.

Referenced by showControlConcept().

+ Here is the caller graph for this function:

◆ printToGlobalTemplate()

ilAccessibilityControlConceptGUI::printToGlobalTemplate (   $tpl)
protected
Parameters
$tpl

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

78 {
79 global $DIC;
80 $gtpl = $DIC['tpl'];
81 $gtpl->setContent($tpl->get());
82 $gtpl->printToStdout("DEFAULT", false, true);
83 }

References $DIC, and $tpl.

Referenced by showControlConcept().

+ Here is the caller graph for this function:

◆ showControlConcept()

ilAccessibilityControlConceptGUI::showControlConcept ( )
protected

Show accessibility control concept.

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

102 {
103 if (!$this->user->getId()) {
104 $this->user->setId(ANONYMOUS_USER_ID);
105 }
106
107 $this->tpl->loadStandardTemplate();
108 $this->tpl->setTitle($this->lng->txt("accessibility_control_concept"));
109
110 $tpl = $this->initTemplate('tpl.view_accessibility_control_concept.html');
111
112 $handleDocument = $this->accessibilityEvaluation->hasDocument();
113 if ($handleDocument) {
114 $document = $this->accessibilityEvaluation->document();
115 $tpl->setVariable('ACCESSIBILITY_CONTROL_CONCEPT_CONTENT', $document->content());
116 } else {
119 : $this->settings->get("admin_email");
120 $tpl->setVariable(
121 'ACCESSIBILITY_CONTROL_CONCEPT_CONTENT',
122 sprintf(
123 $this->lng->txt('no_accessibility_control_concept_description'),
124 'mailto:' . $mails
125 )
126 );
127 }
128
130 }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public

References $tpl, ilAccessibilitySupportContacts\getMailsToAddress(), initTemplate(), ilUtil\prepareFormOutput(), printToGlobalTemplate(), settings(), and user().

+ Here is the call graph for this function:

Field Documentation

◆ $accessibilityEvaluation

ilAccessibilityControlConceptGUI::$accessibilityEvaluation
protected

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

Referenced by __construct().

◆ $ctrl

ilAccessibilityControlConceptGUI::$ctrl
protected

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

◆ $http

ilAccessibilityControlConceptGUI::$http
protected

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

Referenced by __construct().

◆ $lng

ilAccessibilityControlConceptGUI::$lng
protected

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

Referenced by __construct(), and getFooterText().

◆ $tpl

ilAccessibilityControlConceptGUI::$tpl
protected

◆ $user

ilAccessibilityControlConceptGUI::$user
protected

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

Referenced by __construct().


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