ILIAS  release_8 Revision v8.24
class.ilObjSurveyQuestionPoolListGUI.php
Go to the documentation of this file.
1<?php
2
26{
27 public function init(): void
28 {
29 $this->delete_enabled = true;
30 $this->cut_enabled = true;
31 $this->copy_enabled = true;
32 $this->subscribe_enabled = true;
33 $this->link_enabled = true;
34 $this->info_screen_enabled = true;
35 $this->type = "spl";
36 $this->gui_class_name = "ilobjsurveyquestionpoolgui";
37
38 // general commands array
40 }
41
42 public function getCommandFrame(string $cmd): string
43 {
44 $frame = "";
45 switch ($cmd) {
46 case "":
47 case "questions":
48 $frame = ilFrameTargetInfo::_getFrame("MainContent");
49 break;
50
51 default:
52 }
53
54 return $frame;
55 }
56
57 public function getProperties(): array
58 {
60
61 $props = array();
62
63 if (!ilObjSurveyQuestionPool::_lookupOnline($this->obj_id)) {
64 $props[] = array("alert" => true, "property" => $lng->txt("status"),
65 "value" => $lng->txt("offline"));
66 }
67 return $props;
68 }
69
70 public function getCommandLink(string $cmd): string
71 {
72 return "ilias.php?baseClass=ilObjSurveyQuestionPoolGUI&amp;ref_id=" . $this->ref_id . "&amp;cmd=$cmd";
73 }
74}
static _getFrame(string $a_class)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getCommandFrame(string $cmd)
Get command target frame.
getCommandLink(string $cmd)
Get command link url.