ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilAssSpecFeedbackPageGUI.php
Go to the documentation of this file.
1 <?php
2 
32 {
36  public function __construct($a_id = 0, $a_old_nr = 0)
37  {
38  global $DIC;
39  $cmd_class = '';
40  if ($DIC->http()->wrapper()->query()->has('cmdClass')) {
41  $cmd_class = $DIC->http()->wrapper()->query()->retrieve(
42  'cmdClass',
43  $DIC->refinery()->kindlyTo()->string()
44  );
45  }
46 
47  parent::__construct("qfbs", $a_id, $a_old_nr);
48  $this->setTemplateOutput(false);
49  if (strtolower($cmd_class) === 'ilassquestionpreviewgui') {
50  $this->setFileDownloadLink($this->ctrl->getLinkTargetByClass(ilObjQuestionPoolGUI::class, 'downloadFile'));
51  } else {
52  $this->setFileDownloadLink($this->ctrl->getLinkTargetByClass(ilObjTestGUI::class, 'downloadFile'));
53  }
54  }
55 
56  public function preview(): string
57  {
58  $page = parent::preview();
59  $this->tabs_gui->activateTab("pg");
60  return $page;
61  }
62 }
Class ilPageObjectGUI.
setTemplateOutput(bool $a_output=true)
preview()
description: > Example for rendering a Preview Glyph.
Definition: preview.php:41
__construct($a_id=0, $a_old_nr=0)
Constructor.
global $DIC
Definition: shib_login.php:22
setFileDownloadLink(string $a_download_link)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)