ILIAS  release_8 Revision v8.24
class.ilAssSpecFeedbackPageGUI.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("qfbs", $a_id, $a_old_nr);
47 $this->setTemplateTargetVar('ADM_CONTENT');
48 $this->setTemplateOutput(true);
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}
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)
setTemplateTargetVar(string $a_variable)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc