ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilAssQuestionPreviewGUI Class Reference
+ Collaboration diagram for ilAssQuestionPreviewGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilTabsGUI $tabs, ilTemplate $tpl, ilLanguage $lng, ilDB $db, ilObjUser $user)
 
 initQuestion ($questionId, $parentObjId)
 
 initPreviewSettings ($parentRefId)
 
 initPreviewSession ($userId, $questionId)
 
 initHintTracking ()
 
 initStyleSheets ()
 
 executeCommand ()
 
 saveQuestionSolution ()
 
 gatewayConfirmHintRequestCmd ()
 
 gatewayShowHintListCmd ()
 

Data Fields

const CMD_SHOW = 'show'
 
const CMD_RESET = 'reset'
 
const CMD_INSTANT_RESPONSE = 'instantResponse'
 
const CMD_HANDLE_QUESTION_ACTION = 'handleQuestionAction'
 
const CMD_GATEWAY_CONFIRM_HINT_REQUEST = 'gatewayConfirmHintRequest'
 
const CMD_GATEWAY_SHOW_HINT_LIST = 'gatewayShowHintList'
 
const TAB_ID_QUESTION_PREVIEW = 'preview'
 

Protected Attributes

 $ctrl
 
 $tabs
 
 $tpl
 
 $lng
 
 $db
 
 $user
 
 $questionGUI
 
 $questionOBJ
 
 $previewSettings
 
 $previewSession
 
 $hintTracking
 

Private Member Functions

 showCmd ()
 
 resetCmd ()
 
 instantResponseCmd ()
 
 handleQuestionActionCmd ()
 
 populatePreviewToolbar (ilTemplate $tpl)
 
 populateQuestionOutput (ilTemplate $tpl)
 
 populateSolutionOutput (ilTemplate $tpl)
 
 populateQuestionNavigation (ilTemplate $tpl)
 
 populateGenericQuestionFeedback (ilTemplate $tpl)
 
 populateSpecificQuestionFeedback (ilTemplate $tpl)
 
 isShowBestSolutionRequired ()
 
 isShowGenericQuestionFeedbackRequired ()
 
 isShowSpecificQuestionFeedbackRequired ()
 
 getQuestionAnswerShuffler ()
 

Detailed Description

Definition at line 18 of file class.ilAssQuestionPreviewGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssQuestionPreviewGUI::__construct ( ilCtrl  $ctrl,
ilTabsGUI  $tabs,
ilTemplate  $tpl,
ilLanguage  $lng,
ilDB  $db,
ilObjUser  $user 
)

Member Function Documentation

◆ executeCommand()

ilAssQuestionPreviewGUI::executeCommand ( )

Definition at line 147 of file class.ilAssQuestionPreviewGUI.php.

References $cmd.

148  {
149  $this->tabs->setTabActive(self::TAB_ID_QUESTION_PREVIEW);
150 
151  $this->lng->loadLanguageModule('content');
152 
153  $nextClass = $this->ctrl->getNextClass($this);
154 
155  switch($nextClass)
156  {
157  case 'ilassquestionhintrequestgui':
158 
159  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php';
160  $gui = new ilAssQuestionHintRequestGUI($this, self::CMD_SHOW, $this->questionGUI, $this->hintTracking);
161 
162  $this->ctrl->forwardCommand($gui);
163 
164  break;
165 
166  case 'ilassspecfeedbackpagegui':
167  case 'ilassgenfeedbackpagegui':
168  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackPageObjectCommandForwarder.php';
169  $forwarder = new ilAssQuestionFeedbackPageObjectCommandForwarder($this->questionOBJ, $this->ctrl, $this->tabs, $this->lng);
170  $forwarder->forward();
171  break;
172 
173  default:
174 
175  $cmd = $this->ctrl->getCmd(self::CMD_SHOW).'Cmd';
176 
177  $this->$cmd();
178  }
179  }
$cmd
Definition: sahs_server.php:35

◆ gatewayConfirmHintRequestCmd()

ilAssQuestionPreviewGUI::gatewayConfirmHintRequestCmd ( )

Definition at line 403 of file class.ilAssQuestionPreviewGUI.php.

References ilAssQuestionHintRequestGUI\CMD_CONFIRM_REQUEST, and saveQuestionSolution().

404  {
405  $this->saveQuestionSolution();
406 
407  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php';
408 
409  $this->ctrl->redirectByClass(
410  'ilAssQuestionHintRequestGUI', ilAssQuestionHintRequestGUI::CMD_CONFIRM_REQUEST
411  );
412  }
+ Here is the call graph for this function:

◆ gatewayShowHintListCmd()

ilAssQuestionPreviewGUI::gatewayShowHintListCmd ( )

Definition at line 414 of file class.ilAssQuestionPreviewGUI.php.

References ilAssQuestionHintRequestGUI\CMD_SHOW_LIST, and saveQuestionSolution().

415  {
416  $this->saveQuestionSolution();
417 
418  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php';
419 
420  $this->ctrl->redirectByClass(
421  'ilAssQuestionHintRequestGUI', ilAssQuestionHintRequestGUI::CMD_SHOW_LIST
422  );
423  }
+ Here is the call graph for this function:

◆ getQuestionAnswerShuffler()

ilAssQuestionPreviewGUI::getQuestionAnswerShuffler ( )
private
Returns
ilArrayElementShuffler

Definition at line 428 of file class.ilAssQuestionPreviewGUI.php.

Referenced by populateQuestionOutput().

429  {
430  require_once 'Services/Randomization/classes/class.ilArrayElementShuffler.php';
431  $shuffler = new ilArrayElementShuffler();
432 
433  if( !$this->previewSession->randomizerSeedExists() )
434  {
435  $this->previewSession->setRandomizerSeed($shuffler->buildRandomSeed());
436  }
437 
438  $shuffler->setSeed($this->previewSession->getRandomizerSeed());
439 
440  return $shuffler;
441  }
+ Here is the caller graph for this function:

◆ handleQuestionActionCmd()

ilAssQuestionPreviewGUI::handleQuestionActionCmd ( )
private

Definition at line 230 of file class.ilAssQuestionPreviewGUI.php.

231  {
232  $this->questionOBJ->persistPreviewState($this->previewSession);
233  $this->ctrl->redirect($this, self::CMD_SHOW);
234  }

◆ initHintTracking()

ilAssQuestionPreviewGUI::initHintTracking ( )

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

129  {
130  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionPreviewHintTracking.php';
131  $this->hintTracking = new ilAssQuestionPreviewHintTracking($this->db, $this->previewSession);
132  }

◆ initPreviewSession()

ilAssQuestionPreviewGUI::initPreviewSession (   $userId,
  $questionId 
)

Definition at line 120 of file class.ilAssQuestionPreviewGUI.php.

121  {
122  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionPreviewSession.php';
123  $this->previewSession = new ilAssQuestionPreviewSession($userId, $questionId);
124 
125  $this->previewSession->init();
126  }

◆ initPreviewSettings()

ilAssQuestionPreviewGUI::initPreviewSettings (   $parentRefId)

Definition at line 112 of file class.ilAssQuestionPreviewGUI.php.

113  {
114  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionPreviewSettings.php';
115  $this->previewSettings = new ilAssQuestionPreviewSettings($parentRefId);
116 
117  $this->previewSettings->init();
118  }

◆ initQuestion()

ilAssQuestionPreviewGUI::initQuestion (   $questionId,
  $parentObjId 
)

Definition at line 94 of file class.ilAssQuestionPreviewGUI.php.

References assQuestion\instantiateQuestionGUI(), and OUTPUT_JAVASCRIPT.

95  {
96  require_once 'Modules/TestQuestionPool/classes/class.assQuestion.php';
97 
98  $this->questionGUI = assQuestion::instantiateQuestionGUI($questionId);
99  $this->questionOBJ = $this->questionGUI->object;
100 
101  $this->questionOBJ->setObjId($parentObjId);
102 
103  $this->questionGUI->setQuestionTabs();
104  $this->questionGUI->outAdditionalOutput();
105 
106  $this->questionOBJ->setOutputType(OUTPUT_JAVASCRIPT);
107 
108  $this->questionGUI->setTargetGui($this);
109  $this->questionGUI->setQuestionActionCmd(self::CMD_HANDLE_QUESTION_ACTION);
110  }
const OUTPUT_JAVASCRIPT
static instantiateQuestionGUI($a_question_id)
Creates an instance of a question gui with a given question id.
+ Here is the call graph for this function:

◆ initStyleSheets()

ilAssQuestionPreviewGUI::initStyleSheets ( )

Definition at line 134 of file class.ilAssQuestionPreviewGUI.php.

References ilObjStyleSheet\getContentStylePath(), and ilObjStyleSheet\getSyntaxStylePath().

135  {
136  include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
137 
138  $this->tpl->setCurrentBlock("ContentStyle");
139  $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
140  $this->tpl->parseCurrentBlock();
141 
142  $this->tpl->setCurrentBlock("SyntaxStyle");
143  $this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
144  $this->tpl->parseCurrentBlock();
145  }
getSyntaxStylePath()
get syntax style path
getContentStylePath($a_style_id)
get content style path
+ Here is the call graph for this function:

◆ instantResponseCmd()

ilAssQuestionPreviewGUI::instantResponseCmd ( )
private

Definition at line 223 of file class.ilAssQuestionPreviewGUI.php.

224  {
225  $this->questionOBJ->persistPreviewState($this->previewSession);
226  $this->previewSession->setInstantResponseActive(true);
227  $this->ctrl->redirect($this, self::CMD_SHOW);
228  }

◆ isShowBestSolutionRequired()

ilAssQuestionPreviewGUI::isShowBestSolutionRequired ( )
private

Definition at line 368 of file class.ilAssQuestionPreviewGUI.php.

Referenced by showCmd().

369  {
370  if( !$this->previewSettings->isBestSolutionEnabled() )
371  {
372  return false;
373  }
374 
375  return $this->previewSession->isInstantResponseActive();
376  }
+ Here is the caller graph for this function:

◆ isShowGenericQuestionFeedbackRequired()

ilAssQuestionPreviewGUI::isShowGenericQuestionFeedbackRequired ( )
private

Definition at line 378 of file class.ilAssQuestionPreviewGUI.php.

Referenced by showCmd().

379  {
380  if( !$this->previewSettings->isGenericFeedbackEnabled() )
381  {
382  return false;
383  }
384 
385  return $this->previewSession->isInstantResponseActive();
386  }
+ Here is the caller graph for this function:

◆ isShowSpecificQuestionFeedbackRequired()

ilAssQuestionPreviewGUI::isShowSpecificQuestionFeedbackRequired ( )
private

Definition at line 388 of file class.ilAssQuestionPreviewGUI.php.

Referenced by populateQuestionOutput(), and showCmd().

389  {
390  if( !$this->previewSettings->isSpecificFeedbackEnabled() )
391  {
392  return false;
393  }
394 
395  return $this->previewSession->isInstantResponseActive();
396  }
+ Here is the caller graph for this function:

◆ populateGenericQuestionFeedback()

ilAssQuestionPreviewGUI::populateGenericQuestionFeedback ( ilTemplate  $tpl)
private

Definition at line 339 of file class.ilAssQuestionPreviewGUI.php.

References ilAssQuestionFeedback\CSS_CLASS_FEEDBACK_CORRECT, ilAssQuestionFeedback\CSS_CLASS_FEEDBACK_WRONG, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

Referenced by showCmd().

340  {
341  if( $this->questionOBJ->isPreviewSolutionCorrect($this->previewSession) )
342  {
343  $feedback = $this->questionGUI->getGenericFeedbackOutputForCorrectSolution();
345  }
346  else
347  {
348  $feedback = $this->questionGUI->getGenericFeedbackOutputForIncorrectSolution();
350  }
351 
352  if( strlen($feedback) )
353  {
354  $tpl->setCurrentBlock('instant_feedback_generic');
355  $tpl->setVariable('GENERIC_FEEDBACK', $feedback);
356  $tpl->setVariable('ILC_FB_CSS_CLASS', $cssClass);
357  $tpl->parseCurrentBlock();
358  }
359  }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:626
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populatePreviewToolbar()

ilAssQuestionPreviewGUI::populatePreviewToolbar ( ilTemplate  $tpl)
private

Definition at line 236 of file class.ilAssQuestionPreviewGUI.php.

References HTML_Template_IT\setVariable().

Referenced by showCmd().

237  {
238  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionPreviewToolbarGUI.php';
239  $toolbarGUI = new ilAssQuestionPreviewToolbarGUI($this->lng);
240 
241  $toolbarGUI->setFormAction($this->ctrl->getFormAction($this, self::CMD_SHOW));
242  $toolbarGUI->setResetPreviewCmd(self::CMD_RESET);
243 
244  $toolbarGUI->build();
245 
246  $tpl->setVariable('PREVIEW_TOOLBAR', $this->ctrl->getHTML($toolbarGUI));
247  }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:626
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateQuestionNavigation()

ilAssQuestionPreviewGUI::populateQuestionNavigation ( ilTemplate  $tpl)
private

Definition at line 321 of file class.ilAssQuestionPreviewGUI.php.

References HTML_Template_IT\setVariable().

Referenced by showCmd().

322  {
323  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionRelatedNavigationBarGUI.php';
324  $navGUI = new ilAssQuestionRelatedNavigationBarGUI($this->ctrl, $this->lng);
325 
326  $navGUI->setInstantResponseCmd(self::CMD_INSTANT_RESPONSE);
327  $navGUI->setHintRequestCmd(self::CMD_GATEWAY_CONFIRM_HINT_REQUEST);
328  $navGUI->setHintListCmd(self::CMD_GATEWAY_SHOW_HINT_LIST);
329 
330  $navGUI->setInstantResponseEnabled($this->previewSettings->isInstantFeedbackNavigationRequired());
331  $navGUI->setHintProvidingEnabled($this->previewSettings->isHintProvidingEnabled());
332 
333  $navGUI->setHintRequestsPossible($this->hintTracking->requestsPossible());
334  $navGUI->setHintRequestsExist($this->hintTracking->requestsExist());
335 
336  $tpl->setVariable('QUESTION_NAVIGATION', $this->ctrl->getHTML($navGUI));
337  }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:626
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateQuestionOutput()

ilAssQuestionPreviewGUI::populateQuestionOutput ( ilTemplate  $tpl)
private

Definition at line 249 of file class.ilAssQuestionPreviewGUI.php.

References $_POST, getQuestionAnswerShuffler(), isShowSpecificQuestionFeedbackRequired(), ilPageObjectGUI\setRenderPageContainer(), and HTML_Template_IT\setVariable().

Referenced by showCmd().

250  {
251  // FOR WHAT EXACTLY IS THIS USEFUL?
252  $this->ctrl->setReturnByClass('ilAssQuestionPageGUI', 'view');
253  $this->ctrl->setReturnByClass('ilObjQuestionPoolGUI', 'questions');
254 
255  include_once("./Modules/TestQuestionPool/classes/class.ilAssQuestionPageGUI.php");
256  $pageGUI = new ilAssQuestionPageGUI($this->questionOBJ->getId());
257  $pageGUI->setRenderPageContainer(false);
258  $pageGUI->setEditPreview(true);
259  $pageGUI->setEnabledTabs(false);
260 
261  // FOR WHICH SITUATION IS THIS WORKAROUND NECCESSARY? (sure .. imagemaps, but where this can be done?)
262  if (strlen($this->ctrl->getCmd()) == 0 && !isset($_POST['editImagemapForward_x'])) // workaround for page edit imagemaps, keep in mind
263  {
264  $this->ctrl->setCmdClass(get_class($pageGUI));
265  $this->ctrl->setCmd('preview');
266  }
267 
268  $this->questionGUI->setPreviewSession($this->previewSession);
269  $this->questionGUI->object->setShuffler($this->getQuestionAnswerShuffler());
270 
271  $questionHtml = $this->questionGUI->getPreview(true, $this->isShowSpecificQuestionFeedbackRequired());
272  $this->questionGUI->magicAfterTestOutput();
273 
274  $pageGUI->setQuestionHTML(array($this->questionOBJ->getId() => $questionHtml));
275 
276  //$pageGUI->setHeader($this->questionOBJ->getTitle()); // NO ADDITIONAL HEADER
277  $pageGUI->setPresentationTitle($this->questionOBJ->getTitle());
278 
279  //$pageGUI->setTemplateTargetVar("ADM_CONTENT"); // NOT REQUIRED, OR IS?
280 
281  $tpl->setVariable('QUESTION_OUTPUT', $pageGUI->preview());
282  }
$_POST['username']
Definition: cron.php:12
Question page GUI class.
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:626
setRenderPageContainer($a_val)
Set render page container.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateSolutionOutput()

ilAssQuestionPreviewGUI::populateSolutionOutput ( ilTemplate  $tpl)
private

Definition at line 284 of file class.ilAssQuestionPreviewGUI.php.

References $_POST, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), ilPageObjectGUI\setEditPreview(), and HTML_Template_IT\setVariable().

Referenced by showCmd().

285  {
286  // FOR WHAT EXACTLY IS THIS USEFUL?
287  $this->ctrl->setReturnByClass('ilAssQuestionPageGUI', 'view');
288  $this->ctrl->setReturnByClass('ilObjQuestionPoolGUI', 'questions');
289 
290  include_once("./Modules/TestQuestionPool/classes/class.ilAssQuestionPageGUI.php");
291  $pageGUI = new ilAssQuestionPageGUI($this->questionOBJ->getId());
292 
293  $pageGUI->setEditPreview(true);
294  $pageGUI->setEnabledTabs(false);
295 
296  // FOR WHICH SITUATION IS THIS WORKAROUND NECCESSARY? (sure .. imagemaps, but where this can be done?)
297  if (strlen($this->ctrl->getCmd()) == 0 && !isset($_POST['editImagemapForward_x'])) // workaround for page edit imagemaps, keep in mind
298  {
299  $this->ctrl->setCmdClass(get_class($pageGUI));
300  $this->ctrl->setCmd('preview');
301  }
302 
303  $this->questionGUI->setPreviewSession($this->previewSession);
304 
305  $pageGUI->setQuestionHTML(array($this->questionOBJ->getId() => $this->questionGUI->getSolutionOutput(
306  0, null, false, false, true, false,
307  true, false, false
308  )));
309 
310  //$pageGUI->setHeader($this->questionOBJ->getTitle()); // NO ADDITIONAL HEADER
311  //$pageGUI->setPresentationTitle($this->questionOBJ->getTitle());
312 
313  //$pageGUI->setTemplateTargetVar("ADM_CONTENT"); // NOT REQUIRED, OR IS?
314 
315  $tpl->setCurrentBlock('solution_output');
316  $tpl->setVariable('TXT_CORRECT_SOLUTION', $this->lng->txt('tst_best_solution_is'));
317  $tpl->setVariable('SOLUTION_OUTPUT', $pageGUI->preview());
318  $tpl->parseCurrentBlock();
319  }
setEditPreview($a_editpreview)
Set Display first Edit tab, then Preview tab, instead of Page and Edit.
$_POST['username']
Definition: cron.php:12
Question page GUI class.
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:626
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateSpecificQuestionFeedback()

ilAssQuestionPreviewGUI::populateSpecificQuestionFeedback ( ilTemplate  $tpl)
private

Definition at line 361 of file class.ilAssQuestionPreviewGUI.php.

References ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().

Referenced by showCmd().

362  {
363  $tpl->setCurrentBlock('instant_feedback_specific');
364  $tpl->setVariable('ANSWER_FEEDBACK', $this->questionGUI->getSpecificFeedbackOutput(0, -1));
365  $tpl->parseCurrentBlock();
366  }
setVariable($variable, $value='')
Sets a variable value.
Definition: IT.php:626
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetCmd()

ilAssQuestionPreviewGUI::resetCmd ( )
private

Definition at line 211 of file class.ilAssQuestionPreviewGUI.php.

References ilUtil\sendInfo().

212  {
213  $this->previewSession->setRandomizerSeed(null);
214  $this->previewSession->setParticipantsSolution(null);
215  $this->previewSession->resetRequestedHints();
216  $this->previewSession->setInstantResponseActive(false);
217 
218  ilUtil::sendInfo($this->lng->txt('qst_preview_reset_msg'), true);
219 
220  $this->ctrl->redirect($this, self::CMD_SHOW);
221  }
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
+ Here is the call graph for this function:

◆ saveQuestionSolution()

ilAssQuestionPreviewGUI::saveQuestionSolution ( )

Definition at line 398 of file class.ilAssQuestionPreviewGUI.php.

Referenced by gatewayConfirmHintRequestCmd(), and gatewayShowHintListCmd().

399  {
400  $this->questionOBJ->persistPreviewState($this->previewSession);
401  }
+ Here is the caller graph for this function:

◆ showCmd()

ilAssQuestionPreviewGUI::showCmd ( )
private

Definition at line 181 of file class.ilAssQuestionPreviewGUI.php.

References $tpl, isShowBestSolutionRequired(), isShowGenericQuestionFeedbackRequired(), isShowSpecificQuestionFeedbackRequired(), populateGenericQuestionFeedback(), populatePreviewToolbar(), populateQuestionNavigation(), populateQuestionOutput(), populateSolutionOutput(), and populateSpecificQuestionFeedback().

182  {
183  $tpl = new ilTemplate('tpl.qpl_question_preview.html', true, true, 'Modules/TestQuestionPool');
184 
185  $tpl->setVariable('PREVIEW_FORMACTION', $this->ctrl->getFormAction($this, self::CMD_SHOW));
186 
188 
190 
192 
194  {
196  }
197 
199  {
201  }
202 
203  if( $this->isShowBestSolutionRequired() )
204  {
206  }
207 
208  $this->tpl->setContent($tpl->get());
209  }
special template class to simplify handling of ITX/PEAR
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilAssQuestionPreviewGUI::$ctrl
protected

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

Referenced by __construct().

◆ $db

ilAssQuestionPreviewGUI::$db
protected

Definition at line 52 of file class.ilAssQuestionPreviewGUI.php.

Referenced by __construct().

◆ $hintTracking

ilAssQuestionPreviewGUI::$hintTracking
protected

Definition at line 82 of file class.ilAssQuestionPreviewGUI.php.

◆ $lng

ilAssQuestionPreviewGUI::$lng
protected

Definition at line 47 of file class.ilAssQuestionPreviewGUI.php.

Referenced by __construct().

◆ $previewSession

ilAssQuestionPreviewGUI::$previewSession
protected

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

◆ $previewSettings

ilAssQuestionPreviewGUI::$previewSettings
protected

Definition at line 72 of file class.ilAssQuestionPreviewGUI.php.

◆ $questionGUI

ilAssQuestionPreviewGUI::$questionGUI
protected

Definition at line 62 of file class.ilAssQuestionPreviewGUI.php.

◆ $questionOBJ

ilAssQuestionPreviewGUI::$questionOBJ
protected

Definition at line 67 of file class.ilAssQuestionPreviewGUI.php.

◆ $tabs

ilAssQuestionPreviewGUI::$tabs
protected

Definition at line 37 of file class.ilAssQuestionPreviewGUI.php.

Referenced by __construct().

◆ $tpl

ilAssQuestionPreviewGUI::$tpl
protected

Definition at line 42 of file class.ilAssQuestionPreviewGUI.php.

Referenced by __construct(), and showCmd().

◆ $user

ilAssQuestionPreviewGUI::$user
protected

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

Referenced by __construct().

◆ CMD_GATEWAY_CONFIRM_HINT_REQUEST

const ilAssQuestionPreviewGUI::CMD_GATEWAY_CONFIRM_HINT_REQUEST = 'gatewayConfirmHintRequest'

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

◆ CMD_GATEWAY_SHOW_HINT_LIST

const ilAssQuestionPreviewGUI::CMD_GATEWAY_SHOW_HINT_LIST = 'gatewayShowHintList'

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

◆ CMD_HANDLE_QUESTION_ACTION

const ilAssQuestionPreviewGUI::CMD_HANDLE_QUESTION_ACTION = 'handleQuestionAction'

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

◆ CMD_INSTANT_RESPONSE

const ilAssQuestionPreviewGUI::CMD_INSTANT_RESPONSE = 'instantResponse'

Definition at line 22 of file class.ilAssQuestionPreviewGUI.php.

◆ CMD_RESET

const ilAssQuestionPreviewGUI::CMD_RESET = 'reset'

Definition at line 21 of file class.ilAssQuestionPreviewGUI.php.

◆ CMD_SHOW

const ilAssQuestionPreviewGUI::CMD_SHOW = 'show'

◆ TAB_ID_QUESTION_PREVIEW

const ilAssQuestionPreviewGUI::TAB_ID_QUESTION_PREVIEW = 'preview'

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