ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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

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  }
settings()
Definition: settings.php:2
user()
Definition: user.php:4
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: goto.php:24
+ 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.

References $DIC, and ilObjAccessibilitySettings\getControlConceptStatus().

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

138  {
139  global $DIC;
140  $ilCtrl = $DIC->ctrl();
141 
143  return "";
144  }
145 
146  return $ilCtrl->getLinkTargetByClass("ilaccessibilitycontrolconceptgui");
147  }
global $DIC
Definition: goto.php:24
+ 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.

References $DIC, and $lng.

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

155  {
156  global $DIC;
157 
158  $lng = $DIC->language();
159  return $lng->txt("accessibility_control_concept");
160  }
global $DIC
Definition: goto.php:24
+ 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.

References $tpl.

Referenced by showControlConcept().

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
+ Here is the caller graph for this function:

◆ printToGlobalTemplate()

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

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

References $DIC, and $tpl.

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

◆ showControlConcept()

ilAccessibilityControlConceptGUI::showControlConcept ( )
protected

Show accessibility control concept.

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

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

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 
129  self::printToGlobalTemplate($tpl);
130  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
settings()
Definition: settings.php:2
const ANONYMOUS_USER_ID
Definition: constants.php:25
user()
Definition: user.php:4
+ 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: