ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAssGenFeedbackPageGUI.php
Go to the documentation of this file.
1<?php
2
31{
35 public function __construct($a_id = 0, $a_old_nr = 0)
36 {
37 global $DIC;
38 $cmd_class = '';
39 if ($DIC->http()->wrapper()->query()->has('cmdClass')) {
40 $cmd_class = $DIC->http()->wrapper()->query()->retrieve(
41 'cmdClass',
42 $DIC->refinery()->kindlyTo()->string()
43 );
44 }
45
46 parent::__construct("qfbg", $a_id, $a_old_nr);
47 $this->setTemplateOutput(false);
48 if (strtolower($cmd_class) === 'ilassquestionpreviewgui') {
49 $this->setFileDownloadLink($this->ctrl->getLinkTargetByClass(ilObjQuestionPoolGUI::class, 'downloadFile'));
50 } else {
51 $this->setFileDownloadLink($this->ctrl->getLinkTargetByClass(ilObjTestGUI::class, 'downloadFile'));
52 }
53 }
54
55 public function preview(): string
56 {
57 $page = parent::preview();
58 $this->tabs_gui->activateTab("pg");
59 return $page;
60 }
61}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct($a_id=0, $a_old_nr=0)
Constructor.
Class ilPageObjectGUI.
setTemplateOutput(bool $a_output=true)
setFileDownloadLink(string $a_download_link)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26