ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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}
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