25 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
26 include_once
"./Modules/Survey/classes/inc.SurveyConstants.php";
47 $this->info_screen_enabled =
true;
55 $this->static_link_enabled =
true;
56 $this->delete_enabled =
true;
57 $this->cut_enabled =
true;
58 $this->copy_enabled =
true;
59 $this->subscribe_enabled =
true;
60 $this->link_enabled =
true;
61 $this->payment_enabled =
false;
63 $this->gui_class_name =
"ilobjsurveygui";
66 include_once(
'./Modules/Survey/classes/class.ilObjSurveyAccess.php');
79 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
99 include_once
"./classes/class.ilFrameTargetInfo.php";
121 global
$lng, $ilUser, $rbacsystem;
125 if (!$rbacsystem->checkAccess(
"visible,read", $this->ref_id))
130 include_once(
"./Modules/Survey/classes/class.ilObjSurveyAccess.php");
133 $props[] = array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
134 "value" => $lng->txt(
"offline"));
142 $props[] = array(
"alert" =>
true,
143 "property" => $lng->txt(
"participation"),
144 "value" => $lng->txt(
"svy_warning_survey_not_complete"),
145 'propertyNameVisible' =>
false);
149 if ($ilUser->getId() != ANONYMOUS_USER_ID)
156 $stat = $this->lng->txt(
"svy_finished");
159 else if ($finished === 0)
161 $stat = $this->lng->txt(
"svy_not_finished");
166 $stat = $this->lng->txt(
"svy_not_started");
168 $props[] = array(
"alert" =>
false,
"property" => $lng->txt(
"participation"),
169 "value" => $stat,
'propertyNameVisible' =>
false);
192 $cmd_link =
"ilias.php?baseClass=ilObjSurveyGUI&ref_id=" . $this->ref_id .